Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using jit compilers

 
karim qazi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do you specifify to use jit compiler when running a class?
also can anyone explain how the jit complier works?
thanks.
 
Michael Fitzmaurice
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Karim
I think if you are using JDK/JRE 1.3 onwards the default JVM is HotSpot, so you are using a JIT compiler unless you specify otherwise. When you come to run your application, if you use the -classic switch, you will use the 'classic' VM, without a JIT compiler.
If you are in doubt about which VM you are using, just type:
java -version
at the command line.
A little bit more info can be found here:
http://www.javaworld.com/javaworld/jw-03-2000/jw-03-javaperf_2.html
Alternatively, go to the sun site and read up on the HotSpot VM.
Hope this helps
Michael

------------------
"One good thing about music - when it hits, you feel no pain"
Bob Marley
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic