comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Subunits of packages vs. subunits of subprograms
Date: 1996/07/11
Date: 1996-07-11T00:00:00+00:00	[thread overview]
Message-ID: <dewar.837120446@schonberg> (raw)
In-Reply-To: DuDx0J.F5q.0.-s@inmet.camb.inmet.com


Tuck said

"In any case, our AdaMagic(tm) front end implements the approach Robert
mentions, namely that subunits nested only in packages are "truly"
separately compiled, whereas subunits nested in any non-package are
"inlined" at the point of the stub.  If the subunit is not available
when this "inlining" would take place, we issue a warning that the enclosing
unit will need to be recompiled when the subunit is available.  We don't
consider this an error, and the (pre)linker will by default perform
the needed recompilation if necessary."

OK, so interesting that we both agree on not trying to handle subunits
nested in non-packages truly separately. One can imagine programs that
would be badly affected by this (I know of one, the old Alsys
front end technology which used a separate procedure for each pass
(remember that in that compiler, all local access types were automatically
cleaned up on scope exit, so this arrangement makes reasonable sense), but
in practice there don't seem to be other examples like this.

As to the procedures, GNAT would be very similar. I am not sure about
the proper default, I am not sure I like the recompilation structure
being affected by what happens to be around when you compile, but in
any case gnatmake would work as Tuck describes their prelinker working,
it would complete any required compilations.





  reply	other threads:[~1996-07-11  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-11  0:00 Subunits of packages vs. subunits of subprograms Tucker Taft
1996-07-11  0:00 ` Robert Dewar [this message]
1996-07-11  0:00 ` David Morton
1996-07-11  0:00   ` Robert Dewar
1996-07-13  0:00   ` Michael Feldman
1996-07-21  0:00     ` Robert A Duff
1996-07-15  0:00 ` James A. Squire
1996-07-21  0:00   ` Robert A Duff
1996-07-24  0:00   ` JamesS1889
replies disabled

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