This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj-compiled HelloWorld.exe size


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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]