comp.lang.ada
 help / color / mirror / Atom feed
From: jls@rutabaga.Rational.COM (Jim Showalter)
Subject: Re: Reducing size of Ada's EXE files
Date: 16 Apr 91 03:24:21 GMT	[thread overview]
Message-ID: <jls.671772261@rutabaga> (raw)
In-Reply-To: 1991Apr12.235101.7245@jpl-devvax.jpl.nasa.gov

%What most of us complain about is the amount of code that gets linked into an
%executable which will never be executed.  On DEC Ada, for instance, whenever
%you used a subprogram from a package, you got the whole package linked in.
%So if the subprogram was 3 KBytes & the package was 3 MBytes, you got a 
%1000 times as much code in your executable.
%
%Agreed, it takes a smart linker to know just what part of a package you need.
%For instance, any variables global to a package which are used by the desired
%subprogram will need to be linked in.  Any initialization code you include at 
%the end of the package, & all the subprograms & global variables they use,
%must be linked.  And so on.  But eventually such smart linkers must become 
%available if Ada is to compete successfully with other languages.

Our cross-compilers do link-time dead code elimination. Only the code
that is actually reachable is ever loaded into the executables. Similarly,
our Ada runtimes are selectively loadable, so, for example, if you don't
use tasking then no tasking stuff is loaded.
--
* The opinions expressed herein are my own, except in the realm of software *
* engineering, in which case I borrowed them from incredibly smart people.  *
*                                                                           *
* Rational: cutting-edge software engineering technology and services.      *

  parent reply	other threads:[~1991-04-16  3:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-04-12 17:14 Reducing size of Ada's EXE files Ken McCook
1991-04-12 23:51 ` Larry Carroll
1991-04-15 14:47   ` yow
1991-04-16 19:12     ` Michael Feldman
1991-04-15 17:16   ` Michael Feldman
1991-04-16  8:47     ` Jean-Loup Gailly
1991-04-16  3:24   ` Jim Showalter [this message]
1991-04-19 13:28 ` ryer
replies disabled

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