C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

What is the role of the JIT compiler in .NET Framework?

0 votes
26 views
asked Feb 24, 2014 by keem Expert (13,240 points)

1 Answer

0 votes
The JIT compiler is an important element of CLR, which loads MSIL on target machines for execution. The MSIL is stored in .NET assemblies after the developer has compiled the code written in any .NET-compliant programming language, such as Visual Basic and C#.
 
JIT compiler translates the MSIL code of an assembly and uses the CPU architecture of the target machine to execute a .NET application. It also stores the resulting native code so that it is accessible for subsequent calls. If a code executing on a target machine calls a non-native method, the JIT compiler converts the MSIL of that method into native code. JIT compiler also enforces type-safety in runtime environment of .NET Framework. It checks for the values that are passed to parameters of any method. 
 
For example, the JIT compiler detects any event, if a user tries to assign a 32-bit value to a parameter that can only accept 8-bit value.
 
answered Feb 24, 2014 by sara Guru (24,570 points)

Related questions

0 votes
1 answer 23 views
23 views asked Feb 24, 2014 by sara Guru (24,570 points)
0 votes
1 answer 12 views
12 views asked Feb 23, 2014 by sara Guru (24,570 points)
0 votes
1 answer 38 views
38 views asked Feb 23, 2014 by keem Expert (13,240 points)
0 votes
1 answer 31 views
31 views asked Feb 23, 2014 by john Guru (27,140 points)
0 votes
1 answer 8 views
8 views asked Feb 23, 2014 by john Guru (27,140 points)
...