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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a9191cf312bd54f4 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: How to keep the C code produced by GNAT ? Date: 1996/12/09 Message-ID: <01bbe579$40d62480$2f8371a5@dhoossr.iquest.com>#1/1 X-Deja-AN: 203069211 distribution: world references: <1996Dec6.153517.5380@news> <58a36c$13ra@mdnews.btv.ibm.com> <58fbmg$guc@hubcap.clemson.edu> content-type: text/plain; charset=ISO-8859-1 organization: DBH Enterprises, Inc. mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-12-09T00:00:00+00:00 List-Id: Hi all, The program gnatbl is provided for binding and linking using the RTL in the most simple situations. Gnatbl calls gnatbind which creates a C file (b_hello.c, for example) containing calls to all of the elaboration routines; then it compiles this file; then it invokes gcc to do the linking. If the switch -g is used, debugging information is included in the objects, and the b_.c file is kept for use by symbolic debuggers. To my knowledge, this is the only .c file produced by any of the gnat programs. I hope this makes the matter more clear. David C. Hoos, Sr., http://www.dbhwww.com http://www.ada95.com Adam Tyner wrote in article <58fbmg$guc@hubcap.clemson.edu>... > In article <58a36c$13ra@mdnews.btv.ibm.com>, pontius@btv.ibm.com says... > > > >I don't believe C code ever gets generated by GNAT. I believe > >the Ada front-end feeds abstract data structures to the gcc > >back-end directly. No C ever exists. > > What I believe he's thinking of is there is a file with a .C extension that's > produced when GNAT compiles. I've edited one of these .C files that was left > when GNAT crashed once, and Dale's right -- it's not C, despite the extension. > > -Adam Tyner > > -- > /----=========================================----\ > http://www.awod.com/gallery/rwav/ctyner/ > The home of He-Man, "Weird Al", Yoo-Hoo, and more! > ctyner@awod.com O- MiSTie #67,326 > >