What is Just In Time Compiler (JIT) in .NET?

JIT – Just In Time Compiler

- During the code execution time, JIT compiler converts Managed Code (MSIL) to native code/ Machine code for  execution.

- Pre-JIT : Pre-JIT compiles complete source code into native code in a single compilation cycle. This is done at the time of deployment of the application.

- Econo-JIT : Econo-JIT compiles only those methods that are called at runtime. However, these compiled methods are removed when they are not required.

- Normal-JIT: Normal-JIT compiles only those methods that are called at runtime. These methods are compiled the first time they are called and they are stored in cache. When the same methods are called again, the compiled code from cache is used for execution.

The Common Language Runtime (CLR) provides various Just In Time compilers (JIT) and each works on a different architecture depending on Operating System. That is why the same Microsoft Intermediate Language (MSIL) can be executed on different Operating Systems without rewrite the source code. Just In Time (JIT) compilation preserves memory and save time during application initialization. Just In Time (JIT) compilation is used to run at high speed, after an initial phase of slow interpretation. Just In Time Compiler (JIT) code generally offers far better performance than interpreters.

Leave a Reply

Your email address will not be published. Required fields are marked *

9 + 1 =


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">