This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcj and xgamestation
- From: Tom Tromey <tromey at redhat dot com>
- To: xgeoff at yahoo dot com
- Cc: GCC Hackers <gcc at gcc dot gnu dot org>
- Date: 14 Aug 2003 12:33:28 -0600
- Subject: Re: gcj and xgamestation
- References: <20030814181411.29881.qmail@web11208.mail.yahoo.com>
- Reply-to: tromey at redhat dot com
>>>>> "Geoffrey" == Geoffrey Poremba <xgeoff@yahoo.com> writes:
Geoffrey> So why would a "Hello World" program in gcj compile to an
Geoffrey> executable that is larger than one created by gcc, or any
Geoffrey> other c compiler or really any other programming language
Geoffrey> compiler?
The java class library is pretty large and tightly connected. Even a
simple hello-world program pulls in a lot of classes, over 100 I
believe.
That's partly a facet of java, and partly due to our inability to let
the user decide what java features aren't actually needed by the
application.
For C, things work a bit differently. Usually the required runtime
support is pretty minimal, and you can get statically-linked
executables pretty small.
Tom