mixed mode execution

N

Naresh Agarwal

Hi

What is the "mixed mode" execution in java? What are other modes of execution?

thanks,
Naresh
 
M

Michael Borgwardt

Naresh said:
What is the "mixed mode" execution in java? What are other modes of execution?

The modes of execution are "compiled" and "interpreted". Modern JVMs mix both by
selectively compiling to machine code only those parts of the bytecode that are
executed most often (and applying special runtime optimizations). This avoids the
compilation overhead for those parts of the code where it would yield no benefits.
 
N

Naresh Agarwal

thanks for reply Micheal.

Current Sun JVMs use HotSpot technology, which itself means "mixed"
mode.

Is it possible to use HotSpot VM in conjuction with "compiled" or
"interpreted" mode?

thanks,
Naresh
 
M

Michael Borgwardt

Naresh said:
thanks for reply Micheal.

Current Sun JVMs use HotSpot technology, which itself means "mixed"
mode.

Is it possible to use HotSpot VM in conjuction with "compiled" or
"interpreted" mode?

Look at the docs for the java tool. It has an -Xint option to disable JIT
compilation, forcing it into pure interpreted mode. I'm not sure if it's
possible to force it to compile everything: the -Xbatch option prevents
the interpreted execution of methodes that are being compiled, but that
doesn't necessarily mean all methods are compiled.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top