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!news.glorb.com!news.mixmin.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp5-1.free.fr!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: parallel translation References: <4740d5f0$0$27131$9b4e6d93@newsspool1.arcor-online.net> <1195571423.6450.36.camel@kartoffel> Date: Tue, 20 Nov 2007 20:48:07 +0100 Message-ID: <87r6ik1yx4.fsf@willow.rfc1149.net> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:H8ILQnFwZPZ5t10+9OvPTq3GHEc= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Leafnode-NNTP-Posting-Host: 2001:6f8:37a:2::2 Organization: Guest of ProXad - France NNTP-Posting-Date: 20 Nov 2007 20:50:02 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1195588202 news-1.free.fr 2103 88.191.14.223:49064 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:18537 Date: 2007-11-20T20:50:02+01:00 List-Id: >>>>> "Jeffrey" == Jeffrey R Carter 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/