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:38:00 -0500
Date: 2002-06-11T16:38:00-05:00	[thread overview]
Message-ID: <ugcred9bba8t9c@corp.supernews.com> (raw)
In-Reply-To: 3D064BAB.4040168B@despammed.com

Wes Groleau wrote in message <3D064BAB.4040168B@despammed.com>...
>
>> > Plus, in Ada 95, intelligent use of child units can eliminate
>> > most unused code from being linked.
>>
>> Can you give an example of this? It would be nice to learn. I
probably
>> haven't done this so intelligently in my program :-)
>
>... (examples omitted)

>In Ada 83, you could make them all independent packages,
>but then you had to either give up private types or
>write a heck of a lot of support code into the Neato_Data_Type
>package.

But the problems reappear if these are intended to be extensible types
with overridable operations.

Claw is designed much as you suggest, so that you don't drag in control
and window types that you don't use. But you do drag in all of the
functionality for control and window types that you do use, as
everything has to be declared in a single package to support
extensibility and overridability. That means that unused subprogram
elimination is very valuable.

(Its also useful when using the standard Ada libraries, which are not
factored very well. The original reason we implemented it was the huge
size (by 1985 standards) of Text_IO.)

                 Randy.





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