comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: Big executable program size
Date: Mon, 19 Sep 2005 08:42:52 -0700
Date: 2005-09-19T08:42:52-07:00	[thread overview]
Message-ID: <00BXe.5$QR.3@dfw-service2.ext.ray.com> (raw)
In-Reply-To: <1127094422.059661.244550@f14g2000cwb.googlegroups.com>

fracttcarf@yahoo.co.kr wrote:
> I downloaded gnat-gpl-2005-pentium-mingw32msv-bin.exe for win98
> and compiled hello.adb
> This hello.exe size is 1520kb. why?

The simple answer is that your program has statically linked in a lot of 
stuff it doesn't use. You could look at gnatelim if you're interested in 
how much of that is really needed.

A longer answer points out that much of the excess is relatively fixed, 
and is not a significant proportion of a "real" program, where it's also 
more likely to be needed.

-- 
Jeffrey Carter
"Now go away or I shall taunt you a second time."
Monty Python and the Holy Grail
E-mail: jeffrey_r_carter-nr [commercial-at]
         raytheon [period | full stop] com



  parent reply	other threads:[~2005-09-19 15:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-19  1:47 Big executable program size fracttcarf
2005-09-19  2:16 ` John B. Matthews
2005-09-19 15:42 ` Jeffrey Carter [this message]
2005-09-19 18:25   ` tmoran
2005-09-19 17:44 ` Martin Krischik
replies disabled

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