Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes Just In Time compiler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Just In Time compiler " Watch "Just In Time compiler " New topic
Author

Just In Time compiler

chander shivdasani
Ranch Hand

Joined: Oct 09, 2007
Posts: 206

Hi,

I have this confusion with Java Compiling and Interpreting process.

Java code is compiled and is converted into bytecode
Then this bytecode is interpreted using interpreters.

My question is, where does JIT comes into picture in this scenario. How does the JIT process differ from the standard interpreters shipped with JVM?
Any links, or references to resources will be appreciated.

Thanks,
Chander


Enjoy, Chander
SCJP 5, Oracle Certified PL/SQL Developer
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

JVMs haven't operated as pure interpreters in many years. From your description, take out "intepreted by interpreters" and put in "dynamically compiled into native machine code" instead. A just-in-time compiler does the final step of compilation -- machine code generation -- right before execution ("just in time to be executed"), inside the running virtual machine. Sun's HotSpot JVM goes one further by analyzing the code and concentrating on compiling and optimizing the performance-critical parts.

[Jess in Action][AskingGoodQuestions]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

And it's *really* good. I wish Smalltalk VMs had gotten the same love (we're getting there!)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Just In Time compiler