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-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!news2.euro.net!newsfeed.freenet.de!newsfeed1.swip.net!newsfeed1.funet.fi!newsfeed3.funet.fi!newsfeeds.funet.fi!fi.sn.net!newsfeed2.tdcnet.fi!news.song.fi!not-for-mail Date: Thu, 05 Nov 2009 12:02:22 +0200 From: Niklas Holsti Organization: Tidorum Ltd User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 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> In-Reply-To: <687d5205-3e93-4b10-8d5d-e31d20e19e08@2g2000prl.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4af2a2cd$0$26303$4f793bc4@news.tdc.fi> NNTP-Posting-Host: 81.17.205.61 X-Trace: 1257415373 news.tdc.fi 26303 81.17.205.61:49926 X-Complaints-To: abuse@tdcnet.fi Xref: g2news2.google.com comp.lang.ada:8990 Date: 2009-11-05T12:02:22+02:00 List-Id: ChristopherL wrote: > On Nov 4, 10:53 am, ChristopherL wrote: >> Hello, >> >> In about a year, I will be presented with the task of making the same >> large program compilable with two very different Ada compilers. >> >> Sorry, I do not know the names of the compilers or computers that I'll >> be working with. The decision has not been reached at this time. The >> manufacturer support on one or both of these compilers may be almost >> non-existant. >> >> How would you go about compiling your code? >> >> Thanks > > O'kay, I have some additional information to add! > > I will know what files to use to compile with each compiler. In other > words, I will be told this program (group of files) compiles on this > computer using this compiler, and I will be told the same thing for > the second compiler/computer. Again, they will be compiling the same > program with minor differences between them. The differences are in > about 30 files. So, basically there are two groups of 30 files. Each > compiler will use the program with different a different set of 30 > files. > There are about 1000 files in the entire program. So compiler A will > compile 1030 files and compiler B will compile 1000 files plus > different 30 files. The 30 files are required to compile with compiler > A, and a different set of 30 files are required to compile the 1000 > files with compiler B. You are still not making your question or problem clear, in Ada terms. To get reasonable answers you should explain what all these "files" have to do with the desired functionality of the program on one or another computer. So you have a computer A with compiler A, and a computer B with compiler B. The Ada program consists of 1000 "files" (presumably Ada package declarations and package bodies) that are the same for system A and for system B. The complete program for system A consists of these 1000 shared files, plus 30 files specific to system A. The complete program for system B consists of the same 1000 shared files, and 30 other files specific to system B. The core question is *why* you have 30 different files for systems A and B: - Are they simply different versions of the same Ada packages, one version tailored for system A, the other for system B, but implementing the same functionality? Tailoring could be necessary for compiler differences, O/S differences, or computer differences. - Or do they represent different functionality, so that the complete program on system A behaves differently from the complete program on system B? For example, the program on system A may have some added functionality that is absent from the program on system B, and vice versa. Do you now want to combine the two so that all functionality exists on both systems? -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .