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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,344332f209947007 X-Google-Attributes: gid103376,public From: dewar@gnat.com Subject: Re: Gnat Free ? Date: 1998/10/19 Message-ID: <70f16b$d55$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 402750816 References: <6volj0$250$1@uuneo.neosoft.com> <3620F843.39465221@home.com> <3621E42C.2920@Entenhausen.net> <700rfc$6h4$1@nnrp1.dejanews.com> <3627196D.720A@Entenhausen.net> <708040$4h4$1@nnrp1.dejanews.com> <87pvbs6zb3.fsf@yakisoba.forte-intl.com> <708n5d$7ds$1@nnrp1.dejanews.com> <70bgao$j7i$1@news.hal-pc.org> <70e04a$7bc$1@news.hal-pc.org> X-Http-Proxy: 1.0 x3.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Oct 19 09:36:11 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-10-19T00:00:00+00:00 List-Id: In article , Brian Rogoff wrote: > What I meant was to install your version of GNAT in such a way that it > does not interfere with whatever version of gcc you are using to do "real" > work. When I was in graduate school, I didn't have the option of installing > GNAT in the normal place, so I had to install it under my home directory > and rely on a little shell hackery to make it easier to use both > gcc-, which was our main development tool, and GNAT, which I was > using just to learn Ada. I believe that the configure script for that > ancient version of GNAT supported this option directly. This is the brute > force approach to coexistence, maintaining two entirely separate > compilers, but it worked for learning. This approach actually works quite well for production use if you set things up properly. One of the problems with gcc at the moment is that there are multiple source bases (e.g. Apple (Rhapsody), Wind River (VxWorks), Softway Systems (Interix), Cygnus (EGCS)) all differ significantly from the FSF GCC version that is used by GNAT. There is no easy way to distribute GNAT in a manner that is intimately compatible with other compilers using all these possible source bases, so indeed the safest thing if you are using other gcc compilers with a different source base is to install an entirely separate version of GNAT. Note that all GCC patches developed for GNAT are immediately incorporated into the FSF GCC sources (e.g. GCC 2.8 contains all the GCC 2.7 patches developed for GNAT, and the snapshots contain the patches as they are developed). This is why for example people have been successfully able to build GNAT with EGCS (though that requires some additional patches, since EGCS has developed some incompatible interfaces from GCC), since EGCS generally picks up the FSF GCC patches. It is definitely the case that using the binary version of GNAT as distributed by us is the least likely to get you into to trouble. It does require some shell script work to integrate with other gcc compilers around, but this is straightforward, and several of our customers have adopted this approach successfully. Incidentally, one thing that is not possible for us is to distribute updated versions of the gcc patch file that work with a current public release, and some newer or different version of gcc. That is because we simply don't develop such files. Once a version of GNAT is released, we maintain it at the same GCC base level for its entire life time. Developing such patch files is certainly useful, and if the volunteer community can do this, as for example they have for GNAT 3.10p + EGCS, this is certainly most welcome by the user community of the public version. We are happy to arrange for posting of any such patch files in the contrib directories at NYU. Note that we don't control this site, but they will put up anything we give them! Note also in developing such patch files that, as I mentioned above, the GNAT patches do appear in the GCC source snap shots. I would suggest that future more detailed discussion of this issue might better be done on chat@gnat.com where many serious GNAT users participate who do not have time to participate in comp.lang.ada. Robert Dewar Ada Core Technologies -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own