Wednesday, November 28, 2007

What is Just-in-time compilation?

In computing, just-in-time compilation (JIT), as well known as dynamic translation, is a method for improving the runtime presentation of a computer program. JIT builds upon two earlier ideas in run-time environments: they are the bytecode compilation and dynamic compilation. It transfers code at runtime prior to executing it natively, for instance bytecode into native machine code. The performance progress over interpreters originates from caching the results of translating blocks of code, and not just reevaluating each line or operand every time it is met. It as well has advantages more than statically compiling the code at development time, as it can recompile the code if this is found to be advantageous, and it possibly will be able to enforce security guarantees. Therefore JIT can combine the advantages of interpretation and can go with or exceed the performance of static compilation.

No comments: