comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@schonberg.cs.nyu.edu (Robert Dewar)
Subject: Re: Executable File Size Differences
Date: 1996/09/29
Date: 1996-09-29T00:00:00+00:00	[thread overview]
Message-ID: <dewar.844014527@schonberg> (raw)
In-Reply-To: 52l34a$epm@news2.delphi.com


The clever minimal hello world from tmoran:

procedure hello is
  world:exception;
begin
  raise world;
end hello;
produces hello.com of 5328 bytes and when run gives:
** Unhandled User Exception - HELLO.WORLD
On Line Number 4 In HELLO
I realize that's cheating - but adding Text_IO unsurprisingly added
to the executable size.  And real programs under Windows, as Robert
Dewar suggests, results in executables, both C and Ada, noticeably
larger than 5K. #.#




generates an executable of 20K under OS/2, of course it would be smaller
if DLL's were used for the library. The difference of 20K to 5K is
partly a matter of EXE files under OS/2 being larger than COM files
under DOS, and partly a matter of exception semantics being qute a bit richer
in Ada 95 than Ada 83.





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

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-29  0:00 Executable File Size Differences tmoran
1996-09-29  0:00 ` Robert Dewar [this message]
  -- 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-25  0:00 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-02  0:00   ` Robert I. Eachus
1996-10-06  0:00     ` John Howard
1996-09-28  0:00 ` Simon FitzMaurice
1996-10-02  0:00 ` Jon S Anthony
1996-10-11  0:00 ` Robert I. Eachus
replies disabled

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