Home > DeveloperSection > Interviews > What is difference between IL and JIT?

Posted on    July-21-2016 12:16 AM

 2 Answer(s)
  206  View(s)
Rate this:

Elena Glibart
Elena Glibart

Total Post:15

Posted on    July-21-2016 12:16 AM

Difference  between IL and JIT

IL: - .Net supports (C#, J#, VB etc) languages but language gets converted into one and same language which is IL

 JIT:-JIT compiles the IL code to Machine code just before execution and then saves this transaction in memory

Sagar kaushal
Sagar kaushal

Total Post:2

Posted on    August-11-2016 6:34 AM

     IL: The Common Language Run time manages the execution of .NET code. Here is how it works: When you compile a C# program, the output of the compiler is not executable code. Instead, it is a file that contains a special type of pseudo-code called Microsoft Intermediate Language (MSIL). MSIL defines a set of portable instructions that  are independent of any specific CPU. In essence, MSIL defines a portable assembly language. One other point: although MSIL is similar in concept to Java’s byte code. CLR to Translate the Intermediate code into Executable code. Thus, any program compiled to MSIL can be run in any environment for which the CLR is implemented.
     JIT: The .NET Framework contains one or more JIT compilers that compile your IL code down to machine code, or code that is CPU-specific. This is done when the application is executed for the first time.

Don't want to miss updates? Please click the below button!

Follow MindStick