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.

Linked by Eugenia Loli-Queru on Sat 3rd Dec 2005 20:49 UTC (New Mobile Computing)
Charles Torre again sits down with some of the people behind MSR's Singularity research OS. This time, they drill down into the architecture of Singularity and discuss design decisions, usage of safe code, Channels, SIPs, etc. They even manage to get Galen Hunt, the OS Guy, up to the white board to map out some of Singularity's architecture.

Linked by Eugenia Loli-Queru on Tue 6th Dec 2005 20:32 UTC (OS News)
How can a company be just about everywhere, and yet nobody knows its name? Just ask Michel Mayer , chief executive of Freescale Semiconductor.

Recent Original Stories (New Mobile Computing)
Yesterday, the OpenSolaris team released OpenSolaris 2008.05, the fruit of Project Indiana. The first review we found was published over at Blogbeebe, which is overall fairly positive . At the same time, Practical Technology believes that "OpenSolaris has finally been released just in time to die".




______________________________________________________

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.

Name:

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