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: Tue, 30 Dec 2014 15:58:57 -0600
Date: 2014-12-30T15:58:57-06:00	[thread overview]
Message-ID: <m7v771$1gq$1@loke.gir.dk> (raw)
In-Reply-To: c702cb35-a051-4a0b-b7e7-41384fb487e3@googlegroups.com

"Tony" <tony7@tele2.se> wrote in message 
news:c702cb35-a051-4a0b-b7e7-41384fb487e3@googlegroups.com...
> On Tuesday, December 30, 2014 12:56:43 AM UTC+1, Randy Brukardt wrote:
>> The size of Hello world tells one
>> very little about the size and efficiency of a real program.
>
> I have written about 600 Ada programs at home. The average size of the 
> programs are 75 lines of code.
> I never use tasks. These are my real programs.

Really? I'm skeptical that you can do anything useful in 75 lines of code. 
After all, you can't even open a file properly in 75 lines of code. (That 
is, getting the name from the user or the command line, and with appropriate 
error handling.) About all you can do in that size is write a throw-away 
program, and by definition, one doesn't care too much about the "goodness" 
of the result of a throw-away program. (Plus, you're depending on the 
implementation-defined error handling in that case -- and that's hardly 
going to be free.)

If you are "with"ing a bunch of library packages to and using them in the 75 
lines, your real program size has to count the size of the libraries that 
you "with". Which is going to be a lot more than 75 lines.

> "I never use tasks."

Which eliminates ONE form of overhead. But one cannot (sensibly) write an 
Ada program that doesn't use exceptions (from implicit checks if nothing 
else - and you need the unhandled exception mechanisms); finalization is 
used by many of the language-defined packages; virtually every program needs 
the default storage pool; and so on.

Sigh. Why I am I feeding the troll here? Gosh knows.

                                 Randy.


                                                        Randy.


  reply	other threads:[~2014-12-30 21:58 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
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 [this message]
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