comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Why is memory footprint smaller when compiled static?
Date: Tue, 11 Jun 2002 16:32:56 -0500
Date: 2002-06-11T16:32:56-05:00	[thread overview]
Message-ID: <ugcr4u2kvadv2e@corp.supernews.com> (raw)
In-Reply-To: wcc3cvuvdnj.fsf@shell01.TheWorld.com

Robert A Duff wrote in message ...
>> 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.


Not much harder. Janus/Ada 3.1.2 (unreleased as of now because of
optimization problems unrelated to trimming) has done this for more than
a year. It is very valuable with Claw. It does increase the amount of
stuff that has to be saved for the linker (an indication of dispatching
calls with their tag slot numbers), but it actually turned out to be
much easier to implement than I expected (took less than a week).

                Randy.






  parent reply	other threads:[~2002-06-11 21:32 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
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 [this message]
  -- 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