comp.lang.ada
 help / color / mirror / Atom feed
From: "Grein, Christoph" <christoph.grein@eurocopter.com>
Subject: Re: Why is memory footprint smaller when compiled static?
Date: Wed, 5 Jun 2002 13:37:36 +0200 (MET DST)
Date: 2002-06-05T13:37:36+02:00	[thread overview]
Message-ID: <mailman.1023277262.25517.comp.lang.ada@ada.eu.org> (raw)

> > 
> >> Why is there such a big difference?
> > 
> > Page granularity?  Space taken by the GOT?  Overhead of
> > position-independent code?
> 
> Can one have page granularity resulting in 1 Mb difference? The two
> others I don't understand what is.

This is a qustion that appears every now and then. In my eyes, it's rather 
pointless to argue about Hello_World size. Real programs matter, and there the 
differences are minor if programs are really comparable (proper setting of 
options).

The difference in size normally can be attributed to differences in the IO parts 
of C and Ada: Ada does many more things than C, so IO is not comparable, and IO 
is all that matters in Hello_World.



             reply	other threads:[~2002-06-05 11:37 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-05 11:37 Grein, Christoph [this message]
2002-06-05 12:36 ` Why is memory footprint smaller when compiled static? Preben Randhol
2002-06-05 13:42   ` Mark Johnson
2002-06-06  0:02   ` Steven Deller
2002-06-06 10:35     ` Preben Randhol
2002-06-06 14:26     ` Gautier
2002-06-06 15:08       ` Jean-Marc Bourguet
2002-06-06 15:24         ` Jean-Pierre Rosen
2002-06-06 19:35           ` Jeffrey Carter
2002-06-10 23:51     ` Randy Brukardt
2002-06-11  0:53       ` Robert A Duff
2002-06-11 16:45         ` Wes Groleau
2002-06-11 17:08           ` Preben Randhol
2002-06-11 19:12             ` Wes Groleau
2002-06-11 21:38               ` Randy Brukardt
2002-06-11 21:32         ` Randy Brukardt
  -- strict thread matches above, loose matches on Subject: below --
2002-06-04 15:14 Preben Randhol
2002-06-04 16:13 ` Mark Johnson
2002-06-04 21:01 ` Florian Weimer
2002-06-04 21:02 ` Florian Weimer
2002-06-04 21:03 ` Florian Weimer
2002-06-05 11:10   ` Preben Randhol
replies disabled

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