This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj-compiled HelloWorld.exe size
- From: Ranjit Mathew <rmathew at hotmail dot com>
- To: java at gcc dot gnu dot org
- Date: Thu, 16 Jan 2003 10:32:38 +0530
- Subject: Re: gcj-compiled HelloWorld.exe size
- References: <3E260C1F.4090704@globera.com>
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/