comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Size of linked program increasing with new version of GNAT.
Date: Fri, 26 Dec 2014 19:39:14 -0600
Date: 2014-12-26T19:39:14-06:00	[thread overview]
Message-ID: <m7l2k2$g2q$1@loke.gir.dk> (raw)
In-Reply-To: alpine.CYG.2.11.1412251746260.2396@WIL414CHAPIN.vtc.vsc.edu

"Peter Chapin" <PChapin@vtc.vsc.edu> wrote in message 
news:alpine.CYG.2.11.1412251746260.2396@WIL414CHAPIN.vtc.vsc.edu...
> On Thu, 25 Dec 2014, Shark8 wrote:
>
>>>
>>>> -Os for small size.
>>>
>>> Tried this one also now. The 3.15p GNAT don't have it. The 2014 GNAT
>>> still produces a 195 KB executable.
>>>
>>
>> Did you use the "strip unused sections" [or something similar] option for 
>> the linker?
>
> The OP might also want to look into gnatelim to see if using it could help 
> eliminate unusued code.

I would guess this is the "problem". Janus/Ada does this automatically 
(indeed, the Windows version doesn't even work without using it). Janus/Ada 
also avoids any tasking overhead in programs that don't declare a task. But 
Janus/Ada was designed for small program sizes; that's rarely a concern 
today.

> One could argue that the size of the "Hello, World" program isn't all that 
> important. The overhead might be large but if most of that overheard is 
> actually used in a realistically sized program, well, it's not really 
> overhead in that case.

Right. We used to use that argument when people complained about the 8K 
"Hello World" for Ada compared to some much smaller size for some other 
language that was less safe.

But these days, I don't try to argue about it much. Trivia that isn't 
related to one's uses of Ada is irrelevant, and the sorts of engineers that 
gravitate to power tools like Ada (and thus are the real customers for Ada) 
know not to care too much about irrelevant things. The people that worry too 
much about such things tend not to stick with Ada anyway, so spending too 
much effort discussing that isn't worth it.

                                           Randy.



  reply	other threads:[~2014-12-27  1:39 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-25 17:44 Size of linked program increasing with new version of GNAT Tony
2014-12-25 17:57 ` Björn Lundin
2014-12-25 18:36   ` tony7
2014-12-25 19:41     ` Björn Lundin
2014-12-25 20:04       ` Shark8
2014-12-25 20:15       ` tony7
2014-12-25 21:23         ` Shark8
2014-12-25 22:48           ` Peter Chapin
2014-12-27  1:39             ` Randy Brukardt [this message]
2014-12-27  6:43               ` Simon Wright
2014-12-27 18:25                 ` Tony
2014-12-27 23:18                   ` Simon Wright
2014-12-29 23:56                   ` Randy Brukardt
2014-12-30 15:21                     ` Björn Lundin
2014-12-30 17:45                     ` Tony
2014-12-30 21:58                       ` Randy Brukardt
2014-12-30 23:51                         ` Shark8
2014-12-31 12:08                     ` Jean François Martinez
2014-12-31 12:45                       ` Dmitry A. Kazakov
2015-01-01 12:28                         ` Georg Bauhaus
2014-12-26 14:32 ` Pascal Obry
2014-12-26 15:48   ` J-P. Rosen
2014-12-26 15:55   ` Simon Clubley
2014-12-26 20:14     ` Tony
2014-12-27  1:48       ` Randy Brukardt
2014-12-27  9:35     ` Pascal Obry
2014-12-27 21:17     ` Jean François Martinez
replies disabled

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