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: 109fba,ba3d134fb7efbf1d X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,ba3d134fb7efbf1d X-Google-Attributes: gid103376,public From: Simon A Watts Subject: Re: ADA to C++ translator Date: 1996/07/16 Message-ID: <31EB53A9.663E@dra.hmg.gb>#1/1 X-Deja-AN: 168483299 references: <31E51319.41C6@taec.enet.dec.com> <31EA1575.176C@dra.hmg.gb> <4sdi8k$fab@michp1.redstone.army.mil> content-type: text/plain; charset=us-ascii organization: Defence Research Agency mime-version: 1.0 reply-to: sawatts@dra.hmg.gb newsgroups: comp.lang.c++,comp.lang.ada x-mailer: Mozilla 3.0b5aGold (WinNT; I) Date: 1996-07-16T00:00:00+00:00 List-Id: Kevin J. Weise wrote: > > Simon A Watts wrote (with minor deletions): > > > >I think that the GNU Ada95 works by a translation to C (AFAIR). > > > >-- > >+--------------------+ > >| Simon A Watts | > >| DRA Farnborough UK | > >| sawatts@dra.hmg.gb | > >+--------------------+ > > Well, this demon has appeared and been dispatched many times in this newsgroup. So, > before Dr. Dewar goes ballistic, let me respond: > > You remember incorrectly. GNAT is *NOT* and *never has been* an Ada95 to C > translator. The GNAT front end (written in Ada95, I might add) compiles Ada95 > source code to an intermediate representation. The GNU back end takes the > intermediate representation and produces *object code*. There is also a gcc front > end and a g++ front end (which compiles C and C++ to the same intermediate > representation before giving it to the same backend) available from > prep.ai.mit.edu/pub/gnu. > > There is an excellent paper at cs.nyu.edu/pub/gnat that describes this process. The > only C code generation that takes place is during binding, which ensures that all > the program units are properly elaborated before invoking the users' main program. > Would that explain the *.c files left after using GNAT under NT? I do not use Ada, and was only trying it out with the test files with the issue. I also (having reinstalled GNU tools) do not have it available at this time. > ----------------------------------------------------------------------------------- > Kevin J. Weise email: kweise@sed.redstone.army.mil > COLSA Corporation voice: (205) 842-9680 > 6726 Odyssey Dr. > Bldg 6260 > Huntsville, AL 35806 > > standard disclaimers apply... -- +--------------------+ | Simon A Watts | | DRA Farnborough UK | | sawatts@dra.hmg.gb | +--------------------+