WHAT IS DIFFERENCE BETWEEN IL AND JIT?

Elena Glibart

Total Post:19

Points:95
Posted by  Elena Glibart
.NET 
 396  View(s)
Ratings:
Rate this:
  1. Elena Glibart

    Post:19

    Points:95
    What is difference between IL and JIT?

    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

  1. Sagar kaushal

    Post:2

    Points:10
    What is difference between IL and JIT?

         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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!