This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj compiled object file size is big
- From: abhishek desai <abhi00 at gmail dot com>
- To: java at gcc dot gnu dot org
- Date: Mon, 3 Aug 2009 16:55:56 +0530
- Subject: gcj compiled object file size is big
Hi
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 and is there a way to reduce the size of the compiled object
file ?