JIT compiler

Explain the purpose of the JIT compiler in .NET Framework?

E

Expert

Verified

JIT compiler is the key element of CLR that loads MSIL on target machines for execution. MSIL is stored in .NET assemblies after the developer has compiled the code which is written in any .NET-compliant programming language, such as C# and Visual Basic

JIT compiler translates the MSIL code of an assembly and uses CPU architecture of the target machine to execute .NET applications. It also stores the resulting native code so that it is accessible for subsequent calls. If a code which is executing on the target machine calls a non-native method, the JIT compiler changes the MSIL of that method into the native code. JIT compiler also implements type-safety in runtime environment of .NET Framework. It also checks for values that are passed as parameters to any method.

For instance, JIT compiler identifies any event, if a user tries to assign 32-bit value to a parameter which can only accept a 8-bit value.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.