comp.lang.ada
 help / color / mirror / Atom feed
From: boschg@cs.utwente.nl (Geert Bosch)
Subject: Re: GNAT Executables: How low can you go?
Date: 1996/04/16
Date: 1996-04-16T00:00:00+00:00	[thread overview]
Message-ID: <4l0o3s$hgt@utrhcs.cs.utwente.nl> (raw)
In-Reply-To: dewar.829400646@schonberg

Robert Dewar (dewar@cs.nyu.edu) wrote:
: I of course like to see positive posts about GNAT like this, but surely
: that figure of 11,616 is wrong, I could believe 116K, but 12K must
: be wrong, especially if you are using statically linked libraries.
: Text_IO alone is larger than this.

But I didn't say I linked the runtime libraries static ;-) All the
application code, the regexp library  and the necessary headers/stub
fits in 12K. The smallest I could get with statical linking was 52 kB.

But since most C apps use emx.dll and emxlibc.dll, why couldn't Ada
apps not use a dll? I put *all* of the GNARL code (700 kB of .o files)
in one 250 kB dll and link all apps against that. This is a really good
way of avoiding those bloated executables we see otherwise. 

: Can you double check your numbers?

Yes, I did so before posting my previous article. You should also note
that the dynamically linked GNAT Runtime Libraries (GNATLIB.DLL) and
my own apps have been compressed using LXLite. The compressed GNAT1.EXE
(about half the size of the original GNAT1.EXE) seems to load even faster
when not using EMXLoad. When EMXLoad is used the times don't differ.

Of course I also used LINK386 instead of ld, since it seams to produce
much smaller executables. 

Still, even considered all tricks, 12 kB for the application code 
including all regexp code and the necessary .EXE headers is very
little, I think. 

Regards,
   Geert


PS. My newsfeed seems to be broken, so please send a copy of any
    follow-ups to geert@sun3.iaf.nl. 




  reply	other threads:[~1996-04-16  0:00 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-13  0:00 GNAT Executables: How low can you go? Geert Bosch
1996-04-13  0:00 ` Robert Dewar
1996-04-16  0:00   ` Geert Bosch [this message]
1996-04-16  0:00     ` Theodore E. Dennison
1996-04-16  0:00       ` Robert Dewar
1996-04-18  0:00         ` Theodore E. Dennison
1996-04-18  0:00           ` John Howard
1996-04-19  0:00             ` Robert Dewar
1996-04-18  0:00           ` Robert Dewar
1996-04-19  0:00             ` Theodore E. Dennison
1996-04-17  0:00       ` Geert Bosch
1996-04-17  0:00         ` Michael F Brenner
1996-04-18  0:00           ` Theodore E. Dennison
1996-04-19  0:00             ` Robert Dewar
1996-04-19  0:00             ` Geert Bosch
1996-04-26  0:00             ` Richard A. O'Keefe
1996-04-29  0:00               ` Theodore E. Dennison
1996-04-30  0:00               ` mjp
1996-04-18  0:00           ` Geert Bosch
1996-04-26  0:00           ` Geert Bosch
1996-04-18  0:00         ` Theodore E. Dennison
1996-04-18  0:00           ` Robert Dewar
1996-04-19  0:00           ` Norman H. Cohen
1996-04-19  0:00             ` Theodore E. Dennison
1996-04-19  0:00               ` Robert Dewar
1996-04-20  0:00           ` Al Christians
1996-04-22  0:00             ` Theodore E. Dennison
1996-04-19  0:00         ` Fergus Henderson
1996-04-17  0:00 ` Cordes MJ
replies disabled

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