comp.lang.ada
 help / color / mirror / Atom feed
* huge executable??
@ 2000-05-13  0:00 David Dousette
  2000-05-14  0:00 ` Gautier
                   ` (2 more replies)
  0 siblings, 3 replies; 38+ messages in thread
From: David Dousette @ 2000-05-13  0:00 UTC (permalink / raw)


I'm using the OS/2 version of GNAT 3.12p, and as I'm still new to Ada, I
thought I'd take a stab at a "Hello World!" program, without my handy
book... got it on the second try, stupid semicolon... anyway, my
question was why is the executable so large?  Here's the code:

--------------------------------------------------------------------
with Ada.Text_IO;

procedure Hello is

begin
    Ada.Text_IO.Put("Hello World!");
    Ada.Text_IO.Flush;
end Hello;
--------------------------------------------------------------------

I compiled it with the command line "gnatmake hello.adb" and the
executable generated was a little over 250,000 bytes!  I ran it through
"emxbind -s" (as suggested by R. Dewar) to strip out all the debugging
stuff, but it's still 126,000 bytes.... why?  I wrote a similar program
in C, and it was less than 5,000 bytes... why is the .EXE produced by
Ada so much bigger?  The executable runs fine, and I have plenty of hard
drive space... I was just curious.

Thanks,
David





^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2000-05-19  0:00 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-13  0:00 huge executable?? David Dousette
2000-05-14  0:00 ` Gautier
2000-05-14  0:00   ` David Dousette
2000-05-14  0:00     ` Gautier
2000-05-14  0:00 ` tmoran
2000-05-15  0:00   ` Roger Barnett
2000-05-15  0:00   ` DELCOURT J�r�me
2000-05-15  0:00     ` Gisle S�lensminde
2000-05-15  0:00     ` Robert Dewar
2000-05-15  0:00       ` Lutz Donnerhacke
2000-05-15  0:00         ` Robert Dewar
2000-05-16  0:00           ` Lutz Donnerhacke
2000-05-16  0:00             ` tmoran
2000-05-16  0:00             ` Robert Dewar
2000-05-16  0:00               ` Lutz Donnerhacke
2000-05-16  0:00         ` tmoran
2000-05-16  0:00           ` Lutz Donnerhacke
2000-05-16  0:00         ` Geoff Bull
2000-05-16  0:00           ` huge executable?? - worry no more Tom Hargraves
2000-05-16  0:00             ` Gautier
2000-05-16  0:00             ` Marin D. Condic
2000-05-16  0:00             ` Robert Dewar
2000-05-19  0:00               ` Richard D Riehle
2000-05-19  0:00                 ` Ken Garlington
2000-05-16  0:00             ` Martin Dowie
2000-05-18  0:00         ` huge executable?? (null)
2000-05-16  0:00       ` Robert A Duff
2000-05-16  0:00         ` Larry Kilgallen
2000-05-16  0:00           ` Gautier
2000-05-16  0:00             ` Larry Kilgallen
2000-05-17  0:00           ` Robert A Duff
2000-05-16  0:00       ` Gautier
2000-05-16  0:00         ` Robert Dewar
2000-05-16  0:00       ` Florian Weimer
2000-05-16  0:00         ` Robert Dewar
2000-05-15  0:00   ` David Starner
2000-05-19  0:00     ` Lutz Donnerhacke
2000-05-14  0:00 ` Robert Dewar

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