comp.lang.ada
 help / color / mirror / Atom feed
From: gisle@krake.ii.uib.no (Gisle S�lensminde)
Subject: Re: huge executable??
Date: 2000/05/15
Date: 2000-05-15T00:00:00+00:00	[thread overview]
Message-ID: <slrn8i0p6g.98.gisle@krake.ii.uib.no> (raw)
In-Reply-To: 3920DA5B.2F56@club-internet.fr

In article <3920DA5B.2F56@club-internet.fr>, DELCOURT J�r�me wrote:
>tmoran@bix.com wrote:
>> 
>> > why is the .EXE produced by Ada so much bigger?
>>   It's not Ada, it's the particular compiler's run-time for the
>> particular OS.  Your Hello program compiled to 67K with a different
>> compiler.  Dropping the "with ada.text_io" and raising an unhandled
>> "hello_world:exception" instead, that went down to 37K.  Looking at
>> some old DOS .com programs in Ada, I find a 100 line one that
>> HTML-izes a text file and compiles to 19K.  The same program,
>> compiled to run under 32 bit Windows, is now 73K.
>>   The more important question is, is size a problem with real
>> programs that do something substantial.

>
>I think that a reduced executable size is important, since that
>allows a better use of the CPU cache memory, so that could improve
>the speed of the program.

Not quite correct. If some part of the program is unused it will
quickly be flushed out of instruction cache and remain outside,
if ever comes there. It will affect load lime and harddisk space,
but not instruction cache.

Instruction cache is important when you try to unroll code. 
If the codesize no longer fit instruction cache, you will probably 
see a significant performance hit. If you have code doing computational 
work, that part of the code should fit the instruction cache, 
but that have nothing to do with size of the executables on
your hard drive. 

>
>Concerning that problem, I suspect that, with GNAT, there is not
>a good elimination of the unused code.
>
>Sincerely, Jerome Delcourt


-- 
--
Gisle S�lensminde ( gisle@ii.uib.no )   

ln -s /dev/null ~/.netscape/cookies




  reply	other threads:[~2000-05-15  0:00 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-13  0:00 huge executable?? David Dousette
2000-05-14  0:00 ` tmoran
2000-05-15  0:00   ` David Starner
2000-05-19  0:00     ` Lutz Donnerhacke
2000-05-15  0:00   ` Roger Barnett
2000-05-15  0:00   ` DELCOURT J�r�me
2000-05-15  0:00     ` Gisle S�lensminde [this message]
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             ` Robert Dewar
2000-05-16  0:00               ` Lutz Donnerhacke
2000-05-16  0:00             ` tmoran
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             ` Martin Dowie
2000-05-16  0:00             ` Gautier
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             ` Marin D. Condic
2000-05-18  0:00         ` huge executable?? (null)
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-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-14  0:00 ` Gautier
2000-05-14  0:00   ` David Dousette
2000-05-14  0:00     ` Gautier
2000-05-14  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