how to see machine code produced by jam
ranjith kumar
ranjithproxy at gmail.com
Mon Feb 8 22:24:33 PST 2010
hi,
1)how to see machine code produced by java virtual machine?
2)Is there any option available to produce machine code(executable)
from java code?
(so that I can run that executable without running java virtual machine)
3) are java compiler /java virtual machine doing inter class optimizations?
For example:
class one
{
int fun1()
{
return 1111;
}
}
class two()
{
one ONE;
void print()
{
int tmp;
tmp=10+(ONE.fun1());
System.out.println("temp=" + temp);
}
}
My question is when machine code is generated for print() function,
will there be a call to ONE.fun1()
or compiler/interpreter optimizes it to tmp=10+1111 ????
Thanks in advance.
More information about the compiler-grammar-dev
mailing list