04-13-2012
117,
3
Join Date: Aug 2011
Last Activity: 26 November 2017, 12:41 AM EST
Posts: 117
Thanks Given: 31
Thanked 3 Times in 3 Posts
Converting java bytecode to machine code???
Hi friends,
I hope you are fine and doing well. Java compiles its source code into an intermediary form called the bytecode, which has to be interpreted into machine code by the JVM. My question is, is it possible to produce machine code from java source code? For example, suppose I write the hello world program in java and compile it, normally i would have to use the jre to interpet the created class file. Is it possible to convert this hello world java source code directly into an executable form, so that I can execute that program without any kind of interpreter. I have heard about GCJ that it converts java source code or bytecode into machine code, does it really do so? I will really appreciate your wonderful replies.
Thanks in advance!