comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: How to keep the C code produced by GNAT ?
Date: 1996/12/09
Date: 1996-12-09T00:00:00+00:00	[thread overview]
Message-ID: <01bbe579$40d62480$2f8371a5@dhoossr.iquest.com> (raw)
In-Reply-To: 58fbmg$guc@hubcap.clemson.edu


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_<main-unit-name>.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 <ctyner@awod.com> 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
> 
> 




  reply	other threads:[~1996-12-09  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-06  0:00 How to keep the C code produced by GNAT ? Gautier
1996-12-06  0:00 ` Dale Pontius
1996-12-08  0:00   ` Adam Tyner
1996-12-09  0:00     ` David C. Hoos, Sr. [this message]
1996-12-09  0:00     ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox