comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <gautier.demontmollin@maths.unine.ch>
Subject: Re: huge executable??
Date: 2000/05/14
Date: 2000-05-14T00:00:00+00:00	[thread overview]
Message-ID: <391F21AD.1A4DDAB2@maths.unine.ch> (raw)
In-Reply-To: 391F0851.C23985A@mailandnews.com

David Dousette wrote:
> 
> I used Pacific C for DOS... seems like I did one a while back in Watcom 11,
> too, and it wasn't much bigger or smaller.  I didn't think to try it with
> GCC... but what is it about GCC and GNAT that causes that much of an
> increase?  Just the static linking? 

32-bit, Unix-like environment, a rich run-time library; all that combined
with a linker that doesn't trim unused code. It means that even if you are using
1-2 procedures in some package, it will put the whole package, and of course
if one of the unused procedures refers to another package unused by others,
it will link also that one and so on...

But be reassured: the .exe won't grow so much as your program.
The size you see is the "b" in the "size(x)=ax+b" function where
x is you source code - I'm simplifying of course...

If you absolutely want a small exe, pass it through UPX:
  http://wildsau.idv.uni-linz.ac.at/mfx/upx.html

The Janus compiler seems to reduce code size at best; they have
a smart linker too: http://www.rrsoftware.com/

And GNAT can compensate the lack of smart linker with the "gnatelim"
tool that does removal at compilation stage (doesn't it ?). But it can mean
recompiling everything for different projects since the .o files
would be incomplete.

_____________________________________________
Gautier  --  http://members.xoom.com/gdemont/




  reply	other threads:[~2000-05-14  0:00 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-13  0:00 huge executable?? David Dousette
2000-05-14  0:00 ` tmoran
2000-05-15  0:00   ` DELCOURT J�r�me
2000-05-15  0:00     ` Robert Dewar
2000-05-15  0:00       ` Lutz Donnerhacke
2000-05-15  0:00         ` Robert Dewar
2000-05-16  0:00           ` Lutz Donnerhacke
2000-05-16  0:00             ` Robert Dewar
2000-05-16  0:00               ` Lutz Donnerhacke
2000-05-16  0:00             ` tmoran
2000-05-16  0:00         ` Geoff Bull
2000-05-16  0:00           ` huge executable?? - worry no more Tom Hargraves
2000-05-16  0:00             ` Martin Dowie
2000-05-16  0:00             ` Gautier
2000-05-16  0:00             ` Marin D. Condic
2000-05-16  0:00             ` Robert Dewar
2000-05-19  0:00               ` Richard D Riehle
2000-05-19  0:00                 ` Ken Garlington
2000-05-16  0:00         ` huge executable?? tmoran
2000-05-16  0:00           ` Lutz Donnerhacke
2000-05-18  0:00         ` (null)
2000-05-16  0:00       ` Robert A Duff
2000-05-16  0:00         ` Larry Kilgallen
2000-05-16  0:00           ` Gautier
2000-05-16  0:00             ` Larry Kilgallen
2000-05-17  0:00           ` Robert A Duff
2000-05-16  0:00       ` Florian Weimer
2000-05-16  0:00         ` Robert Dewar
2000-05-16  0:00       ` Gautier
2000-05-16  0:00         ` Robert Dewar
2000-05-15  0:00     ` Gisle S�lensminde
2000-05-15  0:00   ` Roger Barnett
2000-05-15  0:00   ` David Starner
2000-05-19  0:00     ` Lutz Donnerhacke
2000-05-14  0:00 ` Gautier
2000-05-14  0:00   ` David Dousette
2000-05-14  0:00     ` Gautier [this message]
2000-05-14  0:00 ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox