What are the differences between a Just-in-Time-Compiler and an Interpreter?

后端 未结 8 1873
既然无缘
既然无缘 2020-12-12 17:12

What are the differences between a Just-in-Time-Compiler and an Interpreter, and are there differences between the .NET and the Java JIT compiler?

8条回答
  •  余生分开走
    2020-12-12 17:49

    When the first time a class is referenced the JIT Execution Engine re-compiles the .class files (primary Binaries) generated by Java Compiler containing JVM Instruction Set to Binaries containing HOST system’s Instruction Set. JIT stores and reuses those recompiled binaries from Memory going forward, there by reducing interpretation time and benefits from Native code execution.

    On the other hand a plain old java interpreter interprets one JVM instruction from class file at a time and calls a procedure against it.

    Find a detail comparison here http://bitshub.blogspot.com/2010/01/Flavors-of-JVM.html

提交回复
热议问题