comp.lang.ada
 help / color / mirror / Atom feed
From: Samuel Tardieu <sam@rfc1149.net>
Subject: Re: parallel translation
Date: Tue, 20 Nov 2007 20:48:07 +0100
Date: 2007-11-20T20:50:02+01:00	[thread overview]
Message-ID: <87r6ik1yx4.fsf@willow.rfc1149.net> (raw)
In-Reply-To: kZF0j.206644$Fc.62186@attbi_s21

>>>>> "Jeffrey" == Jeffrey R Carter <spam.jrcarter.not@acm.nospam.org> writes:

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

As you wrote, GNAT is source based. If P1 depends on the body of P2,
it will use its source file (p2.adb in this case), and this is totally
independant of the compilation of P2 which may well happen in
parallel or after the compilation of P1.

Any unit can be compiled without depending on any other unit
compilation. Moreover, the compiler never reads any ali file. gnatmake
does (to determine what needs to be compiled), and gnatbind does as
well (to determine the elaboration order).

  Sam
-- 
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/



  reply	other threads:[~2007-11-20 19:48 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           ` parallel translation Jeffrey R. Carter
2007-11-20 19:48             ` Samuel Tardieu [this message]
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-19 22:41   ` Ludovic Brenta
2007-11-19 21:48 ` Randy Brukardt
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
replies disabled

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