Just – In – Time Compiler In C#


What is JIT?
            JIT is a Key Component as like the JVM in Java, as name Says this will be used to convert or translate - Microsoft Intermediated Language (MSIL) Code written by user the user with his familiar coding language into the Native code or Machine dependent code to execute the .Net Application.
Ngen.exe or Native Gen is mainly used to store/hold the result of execution or conversion and whenever a subsequent call for the application occurs then this result will be loaded from the native cache.
These kinds of conversion will be happened with the help of CTS and CLS,
1.     CTS à Will take care of Type Safety Conversion
2.     CLS à Will take care of Language Conversion
Example è Int => Int32                                                            
Types of JIT:
  • Pre - JIT.
  • Econo - JIT.
  • Normal - JIT.

Pre – Just – In – Time:
Entire Set of Source code will be converted or translated into a native code in a cycle. The Conversion process will be happened during the application deployment time. while storing into the native cache, this will hold the huge amount of translated code into Ngen.exe cache.
Normal – JIT
Entire Set of Source code will not be converted or translated into a native code in a cycle.  But here it will translate the code which are required at the run time and stored into the Native cache and it will store the method details into the memory after the execution completes. Stored data will be used in the subsequent calls of execution
 The Conversion process will be happened during the run time. while storing into the native cache, this will not hold the huge amount of translated code into Ngen.exe cache and simply it will store required method details.
Econo – JIT
Entire Set of Source code will not be converted or translated into a native code in a cycle.  But here it will translate the code which are required at the run time and stored into the Native cache and it will not store the method details into the memory after the execution completes. The Conversion process will be happened during the run time.

Comments

Post a Comment

Popular posts from this blog