What is the use of JIT

Answer Posted / kirti

JIT (Just - In - Time) is a compiler which converts MSIL code to Native Code (ie.. CPU-specific code that runs on the same computer architecture).

Because the common language runtime supplies a JIT compiler for each supported CPU architecture, developers can write a set of MSIL that can be JIT-compiled and run on computers with different architectures. However, your managed code will run only on a specific operating system if it calls platform-specific native APIs, or a platform-specific class library.

JIT compilation takes into account the fact that some code might never get called during execution. 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 needed during execution and stores the resulting native code so that it is accessible for subsequent calls. The loader creates and attaches a stub to each of a type's methods when the type is loaded. On the initial call to the method, the stub passes control to the JIT compiler, which converts the MSIL for that method into native code and modifies the stub to direct execution to the location of the native code. Subsequent calls of the JIT-compiled method proceed directly to the native code that was previously generated, reducing the time it takes to JIT-compile and run the code.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to answer for project questions..?

2237


Explain the types of Scaffoldings.

633


What is meant by tempdata in mvc?

546


Can you explain the page life cycle of mvc?

561


What is entity framework used for?

525






How to update one of my table in database at 4pm every day how it is possible?

557


What is renderbody?

550


What are the new features 3.5 framework against with the tool?

551


What is the difference between old ADO.NET and Entity framework coding techniques?

565


I want ask from plz smaple example code for Biztalkk server

1719


What are the advantages of mvc over asp.net?

565


In which assembly is the mvc framework defined?

553


Explain JSON Binding?

621


What is display mode in mvc?

582


Does Tempdata hold the data for other request in ASP.Net MVC?

548