output a c file?
John (Eljay) Love-Jensen
eljay@adobe.com
Sat Mar 28 11:19:00 GMT 2009
Hi Anthony,
> Is there a way to make gcc take an input .cpp file and output a translated .c program?
Not with GCC.
Comeau C++ used to do that. I'm not sure if it still does that.
http://www.comeaucomputing.com/
Stroustrup's cfront used to do that. But was abandoned with cfront 4.0 when exceptions were attempted to be added (around 1990). It's no longer available.
http://en.wikipedia.org/wiki/Cfront
You may be able to find an old copy of cfront (see above URL).
HTH,
--Eljay
More information about the Gcc-help
mailing list