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: a07f3367d7,8cbb5d23e501c27a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Tricks Of The Trade: How To Compile Large Program On Two Very Different Compilers References: <81734679-bcfc-4d52-b5c2-104f0d75b592@i12g2000prg.googlegroups.com> <687d5205-3e93-4b10-8d5d-e31d20e19e08@2g2000prl.googlegroups.com> <4af2a2cd$0$26303$4f793bc4@news.tdc.fi> <74d8ae6e-a5f6-4add-b08f-6760c8d3d182@12g2000pri.googlegroups.com> From: Stephen Leake Date: Sat, 07 Nov 2009 00:59:10 -0500 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) Cancel-Lock: sha1:TcjlHDr3WjBlT//+leVmu8zVJdU= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: d55774af50c8ee197caa708838 Xref: g2news2.google.com comp.lang.ada:9024 Date: 2009-11-07T00:59:10-05:00 List-Id: ChristopherL writes: > On Nov 5, 11:04�am, "Jeffrey R. Carter" > wrote: >> ChristopherL wrote: >> >> > They are different versions of the same Ada packages, one version >> > tailored >> > for system A, the other for system B, but implementing the same >> > functionality. >> >> We need to know what it is about these packages that results in you having >> different versions for the 2 compilers. Some things that differ between >> compilers can be handled in a single package; others require that you have >> different bodies for the different compilers. >> > > One requires renaming routines, some of the pragmas to be removed, and > some of the overloaded operators to be removed. The general approach to this is to use separate files in separate directories, and use compiler-specific techniques to select the right directory at compile time. This is easy with GNAT project files; other compilers have other ways to do it. -- -- Stephe