• Post Reply Bookmark Topic Watch Topic
  • New Topic

diff between JVM and interpreter  RSS feed

 
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
what is the difference between JVM and java interpreter ?
 
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess the JVM actually reads (interpretes) the bytecodes generated by the compiler
 
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, the JVM interprets byte codes. The whole discussion of what compilers and interpreters do gets fuzzy from one language to the next. Java has a bit of both - the compiler generates bytecode and the JVM interprets it. Most times people think of interpreters as reading human readable source code, like Perl. My favorite interpreter (REXX) has a "tokenize" phase when it loads the code. Some implementations let you save tokenized code for faster loading next time. Is that "compiled"??? Not quite, but does it matter? Nah, not much.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!