comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: huge executable??
Date: 2000/05/15
Date: 2000-05-15T00:00:00+00:00	[thread overview]
Message-ID: <8fpu0g$a3e$1@nnrp1.deja.com> (raw)
In-Reply-To: 3920DA5B.2F56@club-internet.fr

In article <3920DA5B.2F56@club-internet.fr>,
  sikander@club-internet.fr wrote:

> 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.

You are assuming that size of executable is directly related
to the working set in cache. There is no reason to make this
connection. Indeed it is obvious for example that static vs
dynamic linking, which has no effect on cache usage to speak
of, has a big effect on executable size.
>
> Concerning that problem, I suspect that, with GNAT, there is
> not a good elimination of the unused code.

Elimination of unused code will most certainly reduce executable
size but it won't help one bit in reducing cache pressure, since
obviously unused code never gets into the cache during
execution.

Similarly the presence or absence of debugging information has
a huge effect on executable size, but the debugging info is not
even loaded into memory, let alone the cache, if you are not
using the debugger.

I think to a first approximation, executable size of the null
program, measuring the base size of the run-time, has nothing
at all to do with execution efficiency. It may well have
something to do with functionality (e.g. a fancy exception
handler that prints out tracebacks will clearly take more space,
but there is no reason to worry about this additional space).

Basically the issue here boils down to disk costs alone. Seeing
as 128K bytes is approximately $0.004 worth of disk space, I
don't see this as a big worry these days :-)



Sent via Deja.com http://www.deja.com/
Before you buy.




  parent 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 ` Robert Dewar
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   ` DELCOURT J�r�me
2000-05-15  0:00     ` Gisle S�lensminde
2000-05-15  0:00     ` Robert Dewar [this message]
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             ` 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-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   ` Roger Barnett
2000-05-14  0:00 ` Gautier
2000-05-14  0:00   ` David Dousette
2000-05-14  0:00     ` Gautier
replies disabled

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