What is JIT and how is works ?

Answer Posted / guest

Before Microsoft intermediate language (MSIL) can be
executed, it must be converted by a .NET Framework
just-in-time (JIT) compiler to native code, which is
CPU-specific code that runs on the same computer
architecture as the JIT compiler.
Rather than using time and memory to convert all the MSIL in
a portable executable (PE) file to native code, it converts
the MSIL as it is needed during execution and stores the
resulting native code so that it is accessible for
subsequent calls.
The runtime supplies another mode of compilation called
install-time code generation. The install-time code
generation mode converts MSIL to native code just as the
regular JIT compiler does, but it converts larger units of
code at a time, storing the resulting native code for use
when the assembly is subsequently loaded and executed.
As part of compiling MSIL to native code, code must pass a
verification process unless an administrator has established
a security policy that allows code to bypass verification.
Verification examines MSIL and metadata to find out whether
the code can be determined to be type safe, which means that
it is known to access only the memory locations it is
authorized to access.

Is This Answer Correct ?    43 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the advantage of packaging over xcopy in .net?

740


Explain the advantages of asp.net mvc over asp.net?

826


Can I add asp.net mvc testcases in visual studio express?

831


Can we add constraints to the route? If yes, explain how we can do it?

968


When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?

938


What is the use of view model in asp.net mvc?

872


Explain what languages does the .net framework support?

723


What are the new enhancements done in default project template of asp.net mvc 4?

781


If I have multiple filters implemented, what is the order in which these filters get executed?

716


Can we have enum in entity framework?

793


how can you tell ef to have a different table or column name than that defined for the class?

800


Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?

762


Why should we go for entity framework?

729


Which version of .net framework is installed?

692


what is csdl?

780