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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,caa8ecf96e8cf189 X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: Compiling gnat into gcc-2.8.0 Date: 1998/02/26 Message-ID: <34F5A906.1704@gsfc.nasa.gov>#1/1 X-Deja-AN: 328886727 Content-Transfer-Encoding: 7bit References: <34F421F6.3A5FFF59@towson.edu> Mime-Version: 1.0 Reply-To: Stephen.Leake@gsfc.nasa.gov Content-Type: text/plain; charset=us-ascii Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Newsgroups: comp.lang.ada Date: 1998-02-26T00:00:00+00:00 List-Id: Kevin Taylor wrote: > > I'm sure this has been discussed a billion times, but can someone point > me to some decent instructions on how to compile gnat into gcc? > > I realize it has to be built at the same time as gcc, however, in the > directions I received with the gnat distribution, I need to already have > a version of gcc with ada support in order to compile gcc with ada > support...? > > That doesn't make much sense, and I figure there's a way to do it from > scratch. Yes, this is correct. In the same way, you need a compiler with C support before you can compile gcc to provide C support. The difference is that a lot of systems come with a C compiler. Consider installing gcc from sources on a vanilla Windows box, and you'll appreciate the issues better. You need a machine for which there is a binary distribution of GNAT. Then you can cross-compile GNAT for your machine. From then on, you can compile GNAT from source for each new release. Another difference between gcc C and GNAT is that gcc C was deliberately designed to compile with lots of different C compilers, while GNAT can only be compiled with GNAT (not ObjectAda or any other Ada compiler). This is because the internal compiler code relies on GNAT-specific attributes (and there are probably other reasons). I doubt this will change in the future (don't fix what aint broke), but as other Ada compilers gain a wider distribution, it might be nice. -- - Stephe