Posted by yt7589
on September 8, 2008 at 7:42 PM PDT
Hi alll. I had a basic question about the design of java language.
At present java program first be compile to bytecode then executed by a JVM. Normally JVM is a little big for most of the mobile device. My question is that why not just convert the java bytecode to native executable before it run ( include the necessary JDK class ). Then it will run just as a native program. It will have smaller memory foot-print and run faster than the normal way. Now during the development phase we use the JVM to debug our program. When deploy the program we convert it to the native executable for the target device.
For how to achieve this taget we can convert the class file to for example C source file then compile it with GCC.
I want to know why we don't use this method to address the mobile application development. Does JVM provide so much advantage that we can't by pass it in any way?