This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
GCC backend: can C++ code be converted to C equivalent?
- From: "Alexander Shabanov" <avshabanov at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 26 Feb 2007 12:50:46 +0300
- Subject: GCC backend: can C++ code be converted to C equivalent?
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=i5JAPsJQ+Z9bfrtkt7YH16WwzZQhpZHQ/7a9kw6g9kUfFlLxzbW+CZ+xRcdrnqW6//FVDeqSGI2jDKrfu4s2Xc9fHMs6RWLFN9wk/Ca5g8RIslD+ZOBeqCLnqtNEWmblV8ZI1GuOjwfjtxyW50exUnmU21vn6wnCJ2t0ZRtzJR8=
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?
PS: I searched this via google - he has no ideas :)
--
Best regards,
Alexander