This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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
-- RALF JAHR University of Augsburg mailto:ralf.jahr@informatik.uni-augsburg.de Dept. of Computer Science Phone: (+49) 821 598-2354 D-86159 Augsburg, Germany Fax: (+49) 821 598-2359
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |