comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Why is memory footprint smaller when compiled static?
Date: Tue, 11 Jun 2002 00:53:52 GMT
Date: 2002-06-11T00:53:52+00:00	[thread overview]
Message-ID: <wcc3cvuvdnj.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: ugaes7s5a8jcc9@corp.supernews.com

"Randy Brukardt" <randy@rrsoftware.com> writes:

> Come now. Janus/Ada's linker has eliminated unused subprograms pretty
> much since it was created in the mid-80s. I doubt very much that we were
> 15 years ahead of the curve there... :-)
> 
> I realize that a lot of systems don't do this, and I've never understood
> why: it isn't particularly hard nor very expensive, and it can save a
> lot of space (it saves nearly 1 megabyte of code size in the Claw
> Builder, for example).

I agree -- linkers ought to do this.

But it's harder to do a good job with indirect calls (dispatching),
which you didn't have to worry about in Ada 83.

- Bob



  reply	other threads:[~2002-06-11  0:53 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-05 11:37 Why is memory footprint smaller when compiled static? Grein, Christoph
2002-06-05 12:36 ` 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 [this message]
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