comp.lang.ada
 help / color / mirror / Atom feed
* GNAT and subunits
@ 1995-03-27 14:46 Philip Brashear
  1995-03-27 21:12 ` Michael Feldman
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Philip Brashear @ 1995-03-27 14:46 UTC (permalink / raw)


I'm posting this rather than sending it to gnat-report because it's a far
more general question that should be considered by people outside the GNAT
project.

It is possible (OF COURSE!) that I'm merely being stupid, but I've got a
problem with the scenario described below.

QUESTION:
Is GNAT's processing of subunits really in accordance with language rules?
More importantly, is it in accordance with the spirit and intent of separate
compilation?

Here's my problem:  I have a program (Prog) with a subunit (procedure Sub).
When I compile Prog, GNAT requires me to provide a file containing Sub.  OK,
I can live with that -- I'll just provide a stub.  So, compiling shows me
that my interfaces are pretty much correct.  I link and execute.

Now, I complete Sub (in the file Prog-Sub.adb).  If I just submit Prog-Sub.adb 
to the compiler (as is my usual habit, and, I think, the common way of doing
things), I get the usual "No code generated ... " message.  I now link and
execute.  Guess what!  The STUB version of Sub is still used!  That is, 
re-compiling the separate subprogram (alone) does not appear to affect the
"library".

Can someone convince me that this is OK?

Can someone convince me that this is a GOOD THING?

Phil Brashear
brashepw@msrc.wpafb.af.mil
brashear@sw-eng.falls-church.va.us



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1995-04-04  0:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-03-27 14:46 GNAT and subunits Philip Brashear
1995-03-27 21:12 ` Michael Feldman
1995-03-28 12:58   ` Philip Brashear
1995-04-04  0:00     ` Robert Dewar
1995-03-27 22:20 ` Robert I. Eachus
1995-03-28  0:00 ` Robert Dewar
1995-03-30  0:00   ` Tucker Taft
1995-04-01  0:00     ` Michael Feldman
1995-03-28 16:57 ` Tucker Taft

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