What is JIT and how is works ?

Answer Posted / alb.shah

When compiling the source code to managed code, the
compiler translates the source into Microsoft intermediate
language

(MSIL). This is a CPU-independent set of instructions that
can efficiently be converted to native code. Microsoft

intermediate language (MSIL) is a translation used as the
output of a number of compilers. It is the input to a just-
in-time

(JIT) compiler. The Common Language Runtime includes a JIT
compiler for the conversion of MSIL to native code.

Before Microsoft Intermediate Language (MSIL) can be
executed it, must be converted by the .NET Framework just-
in-time (JIT)

compiler to native code. This is CPU-specific code that
runs on the same computer architecture as the JIT compiler.
Rather

than using time and memory to convert all of the MSIL in a
portable executable (PE) file to native code. It converts
the MSIL

as needed whilst executing, then caches the resulting
native code so its accessible for any subsequent calls


JIT
----

The Just-In-Time (JIT or JITter) compiler, converts the MSIL
(Microsoft Intermediate Language) code into the native code
(CPU

Specific code).

The .NET runtime/Common Language Runtime (CLR) ships three
different classes of JITters.

<li><b>Econo-JIT</b>: This compiler converts the MSIL code
into native code without any optimizations.

<li><b>Standard-JIT</b>: This compiler takes the MSIL code
and optimizes it. So this compiler requires lot of
resources like,

time to compile, larger memory footprint, etc.

<li><b>PreJIT</b>: This is based on the Main JIT and it
works like the traditional compilers rather than Just-In-
Time

compilers. This compiler is used at the time of
installation.

JIT does not compiles hole code ,only the code is to be
executed is compiled

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between AutoPostBack and IspostBack in ASP.NET?

795


What are httphandlers and httpmodules and difference between them?

729


Define the term Scavenging in Caching?

768


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?

742


Explain a program using code nuggets to create a simple application? : asp.net mvc

742


What is ispostback method in asp.net? Why do we use that?

822


What are the contents of cookie?

790


What is the difference between page-level caching and fragment caching?

721


What is web api vs wcf?

775


What is the life cycle of an asp.net page?

680


How do you use viewstate?

731


What is a server farm in iis?

724


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

1653


I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?

1682


which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites

1899