HELP! * YELLOW=global GREY=local Global HTML version of Foils prepared 20 February 97

Foil 8 Java / Interpreter Structure

From Feb 10 Delivered Lecture for Course CPS616 -- Introduction to JavaScript CPS616 spring 1997 -- Feb 10 1997. by Geoffrey Fox * See also color IMAGE
Secs 144
Typical Java Applet Structure
  • Java Source ---> javac compiler --> JavaVM Universal machine code in .class file
  • Store JavaVM .class files on Web Server
  • Download JavaVM from Server to Client.
  • Interpreter built into browser, reads JavaVM and executes on client
Typical JavaScript Structure
  • JavaScript source is included in HTML text
  • Combined JavaScript and HTML is downloaded and interpreted by browser on client to produce HTML page
  • Particular user actions on HTML page (e.g. mouse clicks and form entries) can invoke JavaScript functions on the client
  • As browser one must "understand" raw high level language, this is substantially slower than interpreting JavaVM where "just" need to map universal machine code into machine code for a particular computer
Note in each case , Java and JavaScript use "runtime" which is "compiled high performance library" (probably written in C and C++)


Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat May 3 1997