From: yow@sweetpea.jsc.nasa.gov
Subject: Re: Reducing size of Ada's EXE files
Date: 15 Apr 91 14:47:02 GMT [thread overview]
Message-ID: <1991Apr15.094702@riddler.Berkeley.EDU> (raw)
In-Reply-To: 1991Apr12.235101.7245@jpl-devvax.jpl.nasa.gov
The Meridian compiler for PC DOS systems has a link option (-g) that
will remove unused code. The smallest program that I have been able to
produce using the Meridian Linker with the -g option is 5K. (The program
filled the screen with A's) So it would seem that the Meridian compiler
has about 5K of overhead. On a larger program (630K) the linker removes
about 100K of stuff.
The Major drawback of using the -g option is that it is SLOW. Using it
adds about 2 to 3 minutes to a small link (1 to 2 packages) and about 45
minutes to a large link (over 100 packages). (The system used was a 386
25Mhz with a 2 meg disk cache, and a 15 msec ESDI disk).
What I would like to see is the SHARING of generic code, not this macro
expansion that takes place in compilers. I wrote my own dynamic generic
because the generic code was about 20K (object code size) and the
generic was used 50+ times on a PC (640K limit). This would never work
with the marco expansion because the program would be over 1 meg just
for the generics!!! (:-()
Bill Yow
yow@sweetpea.jsc.nasa.gov
My opinions are my own.
next prev parent reply other threads:[~1991-04-15 14:47 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 [this message]
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
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