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 to prevent client side validation from the ASP.NET validation controls?

0 Answers   Viscus Infotech,


When Garbage Collector runs in an Application? 1)Application is running form more than 30 min. 2)On every 1/4th milisecond 3) Randomly 4) Application is running on low of memory

2 Answers   PCS,


How many types of state management are there in asp net?

0 Answers  


Difference between web user control and web custom control?

0 Answers  


Web API uses which library for JSON serialization?

0 Answers  






Hi this is the coding for adding data in to an xml table i want the coding for update and delete Try Dim emp_xml_doc As New XmlDocument If System.IO.File.Exists(Server.MapPath("emp.xml")) Then emp_xml_doc.Load(Server.MapPath("emp.xml")) Dim myrow_element As XmlElement myrow_element = emp_xml_doc.CreateElement("EmpDetails") Dim str As String str = "<EmpID>" & TxtEmpId.Text & "</EmpID>" & _ "<Empname>" & TxtName.Text & "</Empname>" & _ "<EmpSalary>" & TxtSalary.Text & "</EmpSalary>" myrow_element.InnerXml = str emp_xml_doc.DocumentElement.AppendChild(myrow_element) emp_xml_doc.Save(Server.MapPath("emp.xml")) Response.Write("Record Saved") Dim ds As New DataSet ds.ReadXml(Server.MapPath("emp.xml")) GridView1.DataSource = ds GridView1.DataBind() Else Response.Write("File does not exist.") End If Catch ex As Exception Response.Write(ex.ToString) End Try *********************** this is the xml file <?xml version="1.0" encoding="utf-8" ?> <Employee> <empdetails> <empid>100</empid> <empname>xxx</empname> <empsalary>2000</empsalary> </empdetails> <EmpDetails> <EmpID>yyy</EmpID> <Empname>dddd</Empname> <EmpSalary>77777</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>rrrr</EmpID> <Empname>rrrr</Empname> <EmpSalary>6666</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>qaqa</EmpID> <Empname>sini</Empname> <EmpSalary>50000</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>errrrrrrrr</EmpID> <Empname>rrrrrrrrr</Empname> <EmpSalary>677777</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>rrr</EmpID> <Empname>rrr</Empname> <EmpSalary>33</EmpSalary> </EmpDetails> </Employee>

0 Answers   InfoCom,


How do you create master pages in asp.net?

2 Answers   Wipro,


About session modes

3 Answers   Wipro,


while developing webservices if i want some users to use my webservice only how can i give security to my webservice?

0 Answers  


What is redirecting behavior?

0 Answers  


What methods are fired during the page load?

2 Answers  


Whats an assembly

2 Answers   IBM,


Categories