comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Hello World 217Kb ?
Date: Wed, 24 Nov 2004 02:27:15 +0000 (UTC)
Date: 2004-11-24T02:27:15+00:00	[thread overview]
Message-ID: <co0ri3$9d5$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: rFQod.3202$uV6.1520@newsread3.news.pas.earthlink.net

Jeffrey Carter <spam@spam.com> wrote:
: Georg Bauhaus wrote:
: 
:> when I use the same compiler for translating a function that
:> returns an uninitialised integer variable, I get
:> the following sizes (-O, -static, -gnato):
: 
: Let's be equivalent here. What do you get if you turn off run-time 
: checks, since C doesn't add them?

I get surprisingly little less if anything at all, so I had omitted these
binaries from the listing. I guess this is because GNAT always translates
its own internal files with -gnatpg, so even -a won't change the size
more than 2k for a 555k statically linked executable, 2k more actually.
There is no change in size for the dynamically linked program (ret_code)
when switching from -gnato to -gnatp.  (The assembly listing is the same,
there is no checking code, AFAICS.)

Using some of the Restrictions pragmas the smallest I could get for this
Ada program is 5224 bytes, after stripping symbols. The a.out file has
2856 bytes. Some sections of the disassembly are longer in Ada produce,
one of them is adainit :-).




  reply	other threads:[~2004-11-24  2:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-23 17:25 Hello World 217Kb ? stephane richard
2004-11-23 17:51 ` Adrien Plisson
2004-11-23 18:14   ` stephane richard
2004-11-23 21:31     ` Adrien Plisson
2004-11-29  1:42       ` Freejack
2004-11-29  7:52         ` Alex R. Mosteo
2004-12-07 14:21           ` Warren W. Gay VE3WWG
2004-12-07 15:06             ` Adrien Plisson
2004-12-07 23:15               ` Warren W. Gay VE3WWG
2004-12-08  8:12                 ` Adrien Plisson
2004-12-08  8:49                   ` Vinzent 'Gadget' Hoefler
2004-12-09  3:37                     ` David Botton
2004-12-08 11:39                   ` Warren W. Gay VE3WWG
2004-11-23 22:38     ` Pascal Obry
2004-11-24 13:08       ` stephane richard
2004-11-27  2:23       ` Bini
2004-11-27  8:25         ` Pascal Obry
2004-11-29  0:45           ` Bini
2004-11-23 17:54 ` Martin Krischik
2004-11-23 18:01 ` Simon Clubley
2004-11-23 18:56 ` Jeffrey Carter
2004-11-23  7:01   ` Al Christians
2004-11-24 13:07     ` stephane richard
2004-11-23 20:27 ` Georg Bauhaus
2004-11-24  0:33   ` Jeffrey Carter
2004-11-24  2:27     ` Georg Bauhaus [this message]
2004-11-23 22:36 ` Pascal Obry
replies disabled

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