comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Please list all the Ada libraries you know
Date: Wed, 6 Mar 2013 13:44:28 -0800 (PST)
Date: 2013-03-06T13:44:28-08:00	[thread overview]
Message-ID: <c54586ee-7606-4d6a-b280-897b836bdc47@googlegroups.com> (raw)
In-Reply-To: <kh8aog$atb$1@dont-email.me>

On Wednesday, March 6, 2013 1:01:27 PM UTC-8, J-P. Rosen wrote:
> Le 06/03/2013 18:08, Adam Beneschan a écrit :

> > Anyway, though, my feeling is that once one has chosen to build a
> > "source model" compiler--which means, if I understand it correctly,
> > that if you WITH a package then the compiler has to read the original
> > source of the WITH'ed package specification--then one has already
> > decided that disk access time isn't an issue.  (If it were, the
> > compiler could do something to create a smaller, compressed version
> > of the specification that it would read in instead of reading the
> > original source.)  So whatever good reasons there might be for GNAT
> > to default to a particular case convention, saving disk read time
> > probably isn't a valid reason.
> 
> It may well be the other way round. In a library model, you keep the
> same information (about specs) in the form of tables, and it is not
> obvious that they use less space than the source form.

If you keep *all* information about spec declarations in the library file, including information that isn't explicitly in the source file but that the compiler fills in itself, you may be right.  But that isn't what I said.  Clearly, the compiler could create a representation of a source specification that includes only the important information that already exists in the source file, and store it in a way that's much smaller than the original source.  I suppose that you could still call this a "source model", since the file would still be in some sense a representation of the original source, without any additional semantic information.  But as far as I know, GNAT doesn't do anything like that.  As far as I know, it rereads the original source of every package you've WITH'ed, including all the comments.  (Again, someone please correct me if I'm wrong; but if GNAT creates any kind of 
stripped-down version of the original source, I haven't seen it.)  This doesn't sound like an implementation that makes decisions based on saving disk access time.

                         -- Adam



  reply	other threads:[~2013-03-06 21:44 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 16:42 Please list all the Ada libraries you know ferrariv65
2013-03-03 17:13 ` Dmitry A. Kazakov
2013-03-03 17:29 ` J-P. Rosen
2013-03-03 19:18 ` Jacob Sparre Andersen
2013-03-04  1:02 ` Shark8
2013-03-04  1:23   ` Yannick Duchêne (Hibou57)
2013-03-04  3:32     ` Shark8
2013-03-04  6:32       ` J-P. Rosen
2013-03-04 20:43         ` Adam Beneschan
2013-03-04 21:09           ` gautier_niouzes
2013-03-04 22:57             ` Shark8
2013-03-04 21:13           ` Ludovic Brenta
2013-03-06  6:15           ` J-P. Rosen
2013-03-06  7:15             ` Simon Wright
2013-03-06 15:09             ` Yannick Duchêne (Hibou57)
2013-03-06 16:03               ` Simon Wright
2013-03-06 17:36                 ` Simon Wright
2013-03-06 17:08             ` Adam Beneschan
2013-03-06 19:01               ` Niklas Holsti
2013-03-06 19:34                 ` Adam Beneschan
2013-03-06 19:56                   ` [OT] "sensible" in English (was: Please list all the Ada libraries you know) Ludovic Brenta
2013-03-06 20:33                     ` [OT] "sensible" in English Niklas Holsti
2013-03-07  7:04                       ` Geoff
2013-03-07  7:47                         ` Jeffrey Carter
2013-03-07 10:23                     ` Georg Bauhaus
2013-03-11 16:04                     ` [OT] "sensible" in English (was: Please list all the Ada libraries you know) Ada novice
2013-03-06 20:15                   ` Please list all the Ada libraries you know Niklas Holsti
2013-03-07  2:41                   ` Randy Brukardt
2013-03-07  6:56                   ` Geoff
2013-03-07  7:20                     ` Simon Wright
2013-03-06 21:01               ` J-P. Rosen
2013-03-06 21:44                 ` Adam Beneschan [this message]
2013-03-04  8:12       ` Simon Wright
2013-03-04 20:29         ` Shark8
2013-03-06  0:28 ` Jerry
2013-03-07 21:42 ` mockturtle
2013-03-08  9:02   ` Björn Persson
2013-03-07 22:02 ` slos
replies disabled

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