From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c21db05aee31ddfc X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: parallel translation References: <4740d5f0$0$27131$9b4e6d93@newsspool1.arcor-online.net> <1195571423.6450.36.camel@kartoffel> In-Reply-To: <1195571423.6450.36.camel@kartoffel> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1195584464 12.201.97.213 (Tue, 20 Nov 2007 18:47:44 GMT) NNTP-Posting-Date: Tue, 20 Nov 2007 18:47:44 GMT Organization: AT&T ASP.att.net Date: Tue, 20 Nov 2007 18:47:44 GMT Xref: g2news1.google.com comp.lang.ada:18536 Date: 2007-11-20T18:47:44+00:00 List-Id: 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