|
Abstract For the purpose of platform-independent, a Java program is compiled to an intermediate form, bytecode, which is stack-oriented and hardware-independent. The bytecode is interpreted, the performance of such an interpreter is less comparable to object coded generated by programming languages such as C and C++. To improve the performance of interpreter, a Java Just-In-Time compiler (JIT compiler) is required. The JIT compiler, developed in this thesis, translates bytecode into hardware-dependent machine code for x86 platform at run time. The Java execution environment, the basis of JIT compiler, and using virtual stack technique to implement JIT compiler are illustrated. Finally, we will compare the performance of our JIT compiler with SUN JIT compiler, and discuss the factors that affect performance.
|