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: 109fba,ba3d134fb7efbf1d X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,ba3d134fb7efbf1d X-Google-Attributes: gid103376,public From: "Kevin J. Weise" Subject: Re: ADA to C++ translator Date: 1996/07/15 Message-ID: <4sdi8k$fab@michp1.redstone.army.mil>#1/1 X-Deja-AN: 168828188 references: <31E51319.41C6@taec.enet.dec.com> <31EA1575.176C@dra.hmg.gb> content-type: text/plain; charset=us-ascii organization: Redstone Arsenal, Alabama mime-version: 1.0 newsgroups: comp.lang.c++,comp.lang.ada x-mailer: Mozilla 1.22 (Windows; I; 16bit) Date: 1996-07-15T00:00:00+00:00 List-Id: 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. ----------------------------------------------------------------------------------- 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...