Understanding How Just in Time Compiler Works

The source code that is written is compiled to an intermediate code called the bytecode (in Java) or the Common Intermediate Language (in .Net). Either the Java Virtual Machine or the Common Language Runtime (CLR) is used to compile the code to the intermediate form.

When you execute the program, i.e. the intermediate code, the Just-In-Time (JIT) compiler comes into the picture. The job of the JIT compiler is to convert intermediate code in to the machine code or the native code for execution. With the JIT the code can be optimized to a particular operating system. This is one of the advantages of going for such code execution.

The advantage of converting the source code to the intermediate code is that it can run on any operating system provided you have the JIT for that operating system. This gives the portability to your code.

In .Net the CLR which also has the JIT is used to convert the CIL code into the native code to be processed by the machine. It is also possible to convert the source code to the native code directly by bypassing the tasks done by the JIT. This helps to reduce the load in the JIT. This is done in some cases.

Microsoft Extends Its .NET Framework With New Compiler Platform And Language Features
At its Build developer conference in San Francisco today, Microsoft announced a slew of new features for its .NET platform. With over 1.8 billion installs and 6 million professional developers, .NET -- which launched about twelve years ago -- has long been one of the cornerstones of Microsoft's developer ecosystem. Read More

Whats New in Java 8: Lambdas
Java 8 is here, and, with it, come lambdas. Although long overdue, lambdas are a remarkable new feature that could make us rethink our programming styles and strategies. In particular, they offer exciting new possibilities for functional programming. While lambdas …


Recommended Resource

| Understanding How Just in Time Compiler | Different types of Java Just in Time Compilers | How Does the Just in Time Compiler for Java Works | Understanding Just In Time Java Compiler |


FREE Subscription

Stay Current With the Latest Technology Developments Realted to .NET. Signup for Our Newsletter and Receive New Articles Through Email.



Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.


| Privacy Policy for www.dotnet-guide.com | Disclosure | Contact |

Copyright - © 2004 - 2014 - All Rights Reserved.