2
Reply

How many types of Jit Compilers?

raj kumar

raj kumar

17y
34.2k
0
Reply

    There are 3 Types of JIT
    1. Pre-JIT:- Pre-JIT complies complete source code into native code in a single compilation cycle. This is done at the time of deployment of the application.
    2. Econo-JIT:- Econo-JIT complies only those methods that are called at runtime. However, these complied methods are removed when they are not required.
    3. Normal-JIT:- Normal-JIT complies only those methods that are called at runtime. These methods are complied the first time they are called, and then they are stored in cache. When the same methods are called again, the complied code from cache is used for execution.

    More important .NET Questions And Answers

    Types Of JIT Compiler :



       (1) PRE JIT Compiler.
       (2) ECONO JIT Compiler.
       (3) NORMAL JIT compiler.

    (1) PRE JIT Compiler :

                   Pre-JIt  compiler compiles complete source(MSIL)code to Native code in a single Compilation.

    (1) ECONO JIT Compiler :

                    This compiler compiles only MSIL code of those methods that are called at Runtime.

    3) NORMAL JIT compiler:

                     This compiler compiles only MSIL code of those methods that are called at Runtime and that converted (native) code is stored in Cache.This happens beccause,when these methods called again it will retrieve code from cache itself without sending request to CLR.Thus,inturn saves much of Executiom time