.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> .NET Framework >> Post New QuestionBookmark and Share Subscribe to Forum

just in time compilers(JIT)

Posted By: RASHMI KUSHWAHA     Posted Date: July 07, 2011    Points:5   Category :.NET Framework
what is JIT compilers in .NET Framework???? Can any one explain it?

Author: Gowthammanju             
Posted Date: July 07, 2011     Points: 20   
Author: kamlesh             
Posted Date: July 08, 2011     Points: 20   

JIT compilers are not really the same as interpreters used for scripts such as perl. JIT compilers take code that is already 'partially compiled' in an intermediate form such as Java Bytecode or Microsoft's CIL , and put it into a machine specific form as its running. In other words, it finishes the compiling just-in-time for it to be run. This is done for program portability. Different types of machine architectures use different machine level instructions. Machine instructions that work on a MIPS or PowerPC processor will not work on a x86 processor. So partially compiled programs are compiled as far as it can be without getting into instructions that vary in machine architecture or OS. This is faster and far more efficient that interpreted languages such as Perl and shell scripts. While the application is running, the instructions are compiled are stored in the memory. This prevents the computer from recompiling the same segment of code repeatedly if the program is using a loop for an algorithm or something similar. However, after the program finishes and the memory is cleared, all that remains is the partially compiled program that you started with.

JIT is the process of compiling MSIL code units just when needed at runtime. The JIT compiler in the Common Language Runtime (CLR) compiles MSIL instructions to native machine code as a .NET application is being executed. Compilation occurs when a method is called and is not compiled more than once during program execution; because, JIT-compiled code is cached in memory.

Thanks And Regards.
Kamlesh Nikam
Author: Ravi Ranjan Kumar             
Posted Date: July 09, 2011     Points: 20   

have a go through given links for getting deep reference to know about the impact of JIT

Thanks & Regards
Ravi Ranjan Kumar

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend