+ 1
How is just in time compilation different from interpreting code?
Is interpreting limited to translating and executing one instruction at a time whereas in JIT compilation, you can translate several instructions at a time before executing them?
1 Answer
+ 7
Compiled code is already ready for the computer to process.
Interpreted code is code that has been translated into the compiled machine code. The entire program is converted prior to execution.
JIT compiled code is code compiled by the interpreter as the code is needed just ahead of processing. The interpreter steps through the code as if it were running the code and compiles the code the computer needs to execute. That is just a very basic description.
For greater clarity look at the wiki on jit compiler. Link at end of post.
With the exception of machine language, all programming languages are interpreter based languages, however not all languages are capable of compiling to machine language.
They need all need an operating environment.
https://en.m.wikipedia.org/wiki/Just-in-time_compilation