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]

Re: output a c file?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]