Just-in-time compilation

Edit · View history

Just-in-time compilation

Just-in-time compilation (JIT compilation), also known as dynamic translation, is a technique for improving the performance of programs that are run in an interpreter or virtual machine. Instead of interpreting source code or bytecode instruction by instruction, a JIT compiler translates parts of the code into native machine code at runtime, and then executes that native code directly. This approach can combine the portability of interpreted code with the speed of compiled code.

History

The concept of just-in-time compilation dates back to the early 1960s, when John McCarthy described a form of dynamic compilation in his work on Lisp. However, practical implementations did not become widespread until the 1990s. The Java programming language, released in 1995, popularized JIT compilation through the Java Virtual Machine (JVM). Later, the .NET Framework’s Common Language Runtime (CLR) also adopted a JIT compiler. Modern JIT systems, such as those used in JavaScript engines (e.g., V8 in Google Chrome) and LLVM-based runtimes, have evolved to include advanced profiling and adaptive optimization.

Features