From: Stephen Leake on 5 Nov 2009 05:26 "Hibou57 (Yannick Duch�ne)" <yannick_duchene(a)yahoo.fr> writes: > On 4 nov, 20:27, ChristopherL <clusard...(a)aol.com> wrote: >> So, how can I combine all the files together into 1060 files and >> compile them with both compilers. I.E.: Take the bundle of 10060 >> files and compile them with compiler A, and do the same for >> compiler B. This is compiler dependent. You need to read the compiler documentation; it will tell you how to specify what files to compile. In general, keeping the two different sets of 30 files in separate directories will help. -- -- Stephe
From: Stephen Leake on 7 Nov 2009 00:59 ChristopherL <clusardi2k(a)aol.com> writes: > On Nov 5, 11:04�am, "Jeffrey R. Carter" > <spam.jrcarter....(a)spam.acm.org> 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
|
Pages: 1 Prev: Wells and bads of the Rosen convention for OO like in Ada Next: Using the Clipboard in Linux |