By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,413 Members | 1,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,413 IT Pros & Developers. It's quick & easy.

generating C equivalent from C++ code

P: n/a
all,

reading this article (http://cpptips.hyperformix.com/cpptips/c++_c_output)
and wondering what does "cfront" and "cparse" do? and is there a tool in
the gnu family to generate C equivalent from C++ so that programer can
"peer" through the C++ curtain.

thanks,

ym,
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Yuming Ma" <ma*******@yahoo.com> wrote in message
news:Pi*****************************@home2.local.. .
all,

reading this article (http://cpptips.hyperformix.com/cpptips/c++_c_output)
and wondering what does "cfront" and "cparse" do? and is there a tool in
the gnu family to generate C equivalent from C++ so that programer can
"peer" through the C++ curtain.


The G++ compiler does not generate intermediate C code, so I'm not so sure
if there is such a tool in the gnu family. But at
http://www.comeaucomputing.com/ you can get (for a reasonable price) an
excellent C++ compiler that outputs C code. The C output can be fed to
specific back-end C compilers. However the C output isn't really intended
for human consumption, so I'm not too sure if it would be really helpful for
you. If you know assembler, you might consider turning on the assembly
output of your compiler, which also can shed some light on how things really
work.

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.