GCC backend: can C++ code be converted to C equivalent?

Ian Lance Taylor iant@google.com
Tue Feb 27 06:09:00 GMT 2007


"Alexander Shabanov" <avshabanov@gmail.com> writes:

> Does anybody know if it is possible to produce C code from C++ using gcc (g++)?
> I know that gcc can produce an assembler output using the `S' option,
> but can that code be translated to the certain "crossoplatform"
> assembler - C code? May be there is some unofficial project which is
> regard to this?
> If yes, could you please refer me to the existing documentation?

It is not possible.  I do not know of any existing projects trying to
implement this.

Ian



More information about the Gcc-help mailing list