JIT compiler
suggest changeVersions
The JIT compiler has been part of the CLR since .NET Framework 1.0. The description here applies through 4.6.2.
Introduction
JIT compilation (just-in-time compilation) is an alternative to interpreting source code or compiling it entirely ahead of time. The .NET Framework uses it. C#, F#, Visual Basic, and the other CLR languages are first compiled to Common Intermediate Language (CIL, or IL). IL is lower-level than those languages and is not tied to one CPU. At runtime the JIT compiler turns the IL that is about to run into machine code for the current processor.
Remarks
Why use JIT compilation?
- Better compatibility: each CLR language needs only one compiler to IL, and this IL can run on any platform on which it can be converted into machine code.
- Speed: JIT compilation attempts to combine the speed of running ahead-of-time compiled code, and the flexibility of interpretation (can analyze code that will be executed for potential optimizations before compiling)
Wikipedia Page for more information on JIT compilation in general: https://en.wikipedia.org/wiki/Just-in-time_compilation
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents