This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: output a c file?
- From: Diego Novillo <dnovillo at google dot com>
- To: anlippert at wm dot edu
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 27 Mar 2009 18:42:24 -0400
- Subject: Re: output a c file?
- References: <20090327165035.CTE43884@mailstore.wm.edu>
On Fri, Mar 27, 2009 at 16:50, <anlippert@wm.edu> wrote:
> Is there a way to make gcc take an input .cpp file and output a translated .c program?
No, but you can get something resembling C with the
-fdump-tree-optimized option. The output is not compilable and it's
not really C, though.
Diego.