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: 103376,5af0f768dbf2eafc X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: C code Date: 1996/06/30 Message-ID: #1/1 X-Deja-AN: 163654909 references: <01bb669b.ba8282e0$83f982c1@rbd67.dial.pipex.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-06-30T00:00:00+00:00 List-Id: 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).