gcj compilation size.
Andrew Haley
aph@redhat.com
Mon Aug 3 11:26:00 GMT 2009
abhishek desai wrote:
> I have a simple HelloWorld.java file which prints data to screen.
>> When compiled to a .class file the size is 469 bytes. When the same
> file when compiled to an object file, the size is 1420 bytes. The
> difference is much bigger if there are lots of java files. Can anyone
> please explain why there is such a big difference between the two
> sizes
Java bytecode is very compact. You can see why by reading the Java VM
specification.
> and is there a way to reduce the size of the compiled object
> file ?
Sometimes strip can help.
Andrew.
More information about the Java
mailing list