This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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 and xgamestation


>>>>> "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


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