comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: parallel translation
Date: Tue, 20 Nov 2007 18:47:44 GMT
Date: 2007-11-20T18:47:44+00:00	[thread overview]
Message-ID: <kZF0j.206644$Fc.62186@attbi_s21> (raw)
In-Reply-To: <1195571423.6450.36.camel@kartoffel>

Georg Bauhaus wrote:
> 
> P1 (in file "p1.ads", say) depends on P2 (in file "p2.ads", say).
> I am assuming that Task 1 is supposed to compile P1, and task 2
> is supposed to compile P2. An elaboration order will have to be
> established in order to translate almost anything. Here, for
> example, task 1 (compiling P1) must know what is in P2 (compiled
> in task 2) because P1 depends on P2. How do the compilers etc.
> communicate?

No, GNAT is source based. The compilation of P1 will read p2.ads; the 
compilation of P2 will read p2.ads and p2.adb (if needed). The compilation of P1 
need not wait for P2 to be compiled.

If P1 depends on the body of P2 (perhaps by calling an inlined subprogram with 
-gnatn), then you have a problem similar to what you described. I'm not sure how 
GNAT handles this, but perhaps the task compiling P1 can wait until appropriate 
versions of p2.ali and p2.o are created.

-- 
Jeff Carter
"Go and boil your bottoms."
Monty Python & the Holy Grail
01



  reply	other threads:[~2007-11-20 18:47 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-17 21:22 Direct Quote from the RM anon
2007-11-18  7:07 ` Simon Wright
2007-11-18  9:43   ` anon
2007-11-18 12:57     ` Markus E L
2007-11-19  0:16     ` Georg Bauhaus
2007-11-20 13:43       ` anon
2007-11-20 15:10         ` parallel translation (was: Direct Quote from the RM) Georg Bauhaus
2007-11-20 18:47           ` Jeffrey R. Carter [this message]
2007-11-20 19:48             ` parallel translation Samuel Tardieu
2007-11-21  0:09               ` Jeffrey R. Carter
2007-11-20 20:26             ` Georg Bauhaus
2007-11-20 17:07         ` Direct Quote from the RM Vadim Godunko
2007-11-21  6:44           ` anon
2007-11-19 21:48 ` Randy Brukardt
2007-11-20 12:32   ` anon
2007-11-20 16:21     ` Adam Beneschan
2007-11-21  3:14       ` Randy Brukardt
2007-11-21  8:03         ` anon
2007-11-21  3:01     ` Randy Brukardt
2007-11-21  3:01     ` Randy Brukardt
2007-11-26 18:23       ` Adam Beneschan
2007-11-19 21:48 ` Randy Brukardt
2007-11-19 22:41   ` Ludovic Brenta
2007-11-19 21:48 ` Randy Brukardt
replies disabled

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