comp.lang.ada
 help / color / mirror / Atom feed
From: Simon FitzMaurice <sdf@east.thomsoft.com>
Subject: RE: Executable File Size Differences
Date: 1996/09/28
Date: 1996-09-28T00:00:00+00:00	[thread overview]
Message-ID: <01bbad48.62d509c0$0f899dc0@karen> (raw)
In-Reply-To: 52bmn5$7r0@sjx-ixn6.ix.netcom.com


There are two flavours of debugging information (Ada debugging and
CodeView - see the checkboxes on the link tab) optionally included in the
executables in *non-loadable* segments.  The use of each of these
significantly affects the size of "hello.exe" as the following table
indicates:

				   Ada debug
				Y		N
Codeview debug	Y	732104	331712
			N	732032	84480

Note that it is possible to remove debugging information from an
executable using the command "cvpack /strip".  The true memory footprint
is always most accurately determined from the link map.

In future versions it will be possible to link to the runtime in a DLL;
this further reduces the size of "hello.world" to around 10k without debug
(like MSVC).

Simon FitzMaurice
Principal Software Engineer
Thomson Software Products
200 Wheeler Road
Burlington MA 01803


On Wednesday, September 25, 1996, Georgi Savov wrote...
> Robert P. Kuzmicki wrote:
> > 
> > I tried compiling a simple "Hello World" program with the Thomson
Software's ActivAda for Windows
> > and Thomson's new "ObjectAda". The ActivAda version produces a
executable file size of about 288K.
> > ObjectAda produces an exe of about 788K. Microsoft C++ produces an exe
of about 10K. Why are the
> > executables so substantially different? Are the Ada compilers linking
in alot of excess baggage? I
> > have tried various compiler switches, but nothing seems to shrink the
exe file sizes.
> > 
> > Can anyone enlighten me here?
> Probably you are looking at the Debug version of the EXE file.
> Try making a Release Version. I did. It is 83K.
> 
> Georgi Savov
> 







  parent reply	other threads:[~1996-09-28  0:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-25  0:00 Executable File Size Differences Robert P. Kuzmicki
1996-09-25  0:00 ` Georgi Savov
1996-09-28  0:00   ` Stanley Allen
1996-09-28  0:00     ` Robert Dewar
1996-09-30  0:00     ` Richard A. O'Keefe
1996-10-01  0:00       ` Ken Cowan
1996-10-03  0:00         ` Stanley Allen
1996-10-04  0:00           ` Ada 95 - Performance vs. Pervasiveness (was: Executable File Size Diff Larry Kilgallen
1996-10-02  0:00   ` Executable File Size Differences Robert I. Eachus
1996-10-06  0:00     ` John Howard
1996-09-28  0:00 ` Simon FitzMaurice [this message]
1996-10-02  0:00 ` Jon S Anthony
1996-10-11  0:00 ` Robert I. Eachus
  -- strict thread matches above, loose matches on Subject: below --
1996-09-28  0:00 Robert Dewar
1996-09-28  0:00 ` Tony Picarello
1996-09-29  0:00 tmoran
1996-09-29  0:00 ` Robert Dewar
replies disabled

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