From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: C code
Date: 1996/06/30
Date: 1996-06-30T00:00:00+00:00 [thread overview]
Message-ID: <dewar.836157158@schonberg> (raw)
In-Reply-To: 01bb669b.ba8282e0$83f982c1@rbd67.dial.pipex.com
Henry asked
"Can GNAT 3.04 compile standalone C code that's independant of an .adb
file?"
GNAT is an Ada compiler, so certainly it cannot compile C. However GNAT is
part of the multi-language compiler gcc, and one of the other front ends
(the GNU C front end) can definitely compile C. Furthermore, all
distributions of GNAT include the C front end.
So all you have to do is gcc -c xxx.c
to compile a C file (gcc knows what front end to call by looking at the
extension of the file being compiled -- although this can be overridden
with the -x switch).
next prev parent reply other threads:[~1996-06-30 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-30 0:00 C code Henry the mild mannered janitor
1996-06-30 0:00 ` Robert Dewar [this message]
1996-07-01 0:00 ` Pascal Obry
-- strict thread matches above, loose matches on Subject: below --
2003-02-07 21:48 chris.danx
2003-02-08 4:59 ` sk
2003-02-08 16:08 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox