gcj-compiled HelloWorld.exe size
Ranjit Mathew
rmathew@hotmail.com
Thu Jan 16 05:02:00 GMT 2003
Boris Kolar wrote:
> I'm new to gcj, so I haven't explored all options yet, but gcj really does
> produce huge executables under MinGW.
~sigh~
This *has* to be the most frequently asked question for GCJ!
What I suggest is that you take the Sun JDK to compile
and run your HelloWorld class, but with the "-verbose:class"
option to the interpreter: with JRE 1.4.1, there are 276
classes loaded for this program!!
Considering that the HelloWorld.exe produced with GCJ should
contain a similar number of classes, plus the garbage
collector, plus an interpreter - the size you report should
appear quite reasonable for a *standalone* Java program that
doesn't require the mammoth JRE to be installed on the user's
machine, no?
If you want to distribute multiple such programs however, it
would make sense to use libgcj.dll, which has only recently
been made possible for Windows as Anthony as shown, but is
not yet there in the distribution.
Ranjit.
--
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/
More information about the Java
mailing list