JIT compiler

A compiler inside a runtime that turns intermediate code into native machine code while the program runs.

In more detail

JIT stands for just-in-time. Because the final compilation happens on the target machine, one compiled package can run on different processors. Some runtimes compile each method the first time it is called, and many later recompile frequently run code with heavier optimisation.

Examples

.NET: the JIT compiles IL from an assembly; ReadyToRun publishing precompiles some of it.
Java: the JVM interprets bytecode first, then HotSpot's fast and optimising compilers take over hot methods, which is why a service needs a warm-up.
.NET, Java and web browsers use JIT compilers, so their processes legitimately contain private executable memory with no file behind it.

Related terms

Taught in

References