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=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 115aec,b388e4a11c35fe6a X-Google-Attributes: gid115aec,public X-Google-Thread: 103376,b388e4a11c35fe6a X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,b388e4a11c35fe6a X-Google-Attributes: gid1014db,public From: tore@lis.pitt.edu (Tore Joergensen) Subject: Re: ADA to C converter, the dream ? Date: 1996/02/22 Message-ID: <4ggdc2$jh2@toads.pgh.pa.us>#1/1 X-Deja-AN: 140490884 references: <4fn8bv$6d1@news.be.innet.net> <3121E777.304D@afit.af.mil> followup-to: comp.lang.ada,comp.lang.c,comp.realtime organization: University of Pittsburgh newsgroups: comp.lang.ada,comp.lang.c,comp.realtime Date: 1996-02-22T00:00:00+00:00 List-Id: Rusty Baldwin (rbaldwin@nvi.nvi.net) wrote: : Thomas G. McWilliams wrote: : > There exists a good Pascal to C translator called p2c available : > in source code form (I think it might be GNU software). It might : > serve as a rough basis on which to build something like this. : > Perhaps you could run your Ada code through some Perl filters : > and post-process with p2c. Very hackish, I know. Maybe a Modula : > to C translator could be hacked more easily. : Why don't you use the gnat (Ada 95) compiler. It is a front end to the : gcc compiler. Perhaps there is a switch to generate C code?? C and C++ are two other front ends to the gcc compiler. I'm quite sure that there isn't any switch for converting code between different front ends (wouldn't that be nice; C to C++ and Ada95 converter). BTW, there are several other front ends too. -- +-------------------------+-------------------------------------------+ | Tore B. Joergensen | e-mail : tore@lis.pitt.edu | | Centre Court Villa | web : http://www.pitt.edu/~tojst1 | | 5535 Centre Avenue # 6 | | | Pgh, PA 15232, USA | Norwegian MSIS-student at Univ. of Pgh. | +-------------------------+-------------------------------------------+