What is JIT and how is works ?



What is JIT and how is works ?..

Answer / 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

More ASP.NET Interview Questions

How can exception be handled with out the use of try catch?

0 Answers  


How do we sort the data from a dataset?

0 Answers  


How can we prevent an aspx page get refreshed when any information fetch from the database ?

2 Answers   Minecode,


Where we create sessions for Banking Applications and how to create? expalin with code?

1 Answers   Wipro,


I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'

2 Answers  






Why is global asax is used?

0 Answers  


what is silver light when will we use silver light,

0 Answers  


How many types of cache are there?

0 Answers  


What is deff. saop and disco?

1 Answers  


Can you explain the importance of finalize method in .net?

0 Answers  


Which method has beenintroduced in asp.net 4.0 to redirect a page permanently?

0 Answers  


Explain the differences between Server-side and Client-side code?

2 Answers  


Categories