Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to convert c++ code into ansi c code?

Status
Not open for further replies.

guoxiangguo

Programmer
Sep 27, 2001
2
0
0
CN
I'm seeking a way to convert c++ to standard ansi c, automatic, and free of charge.
I've heard about that gcc is able to do this and yield a result that is not so readable, and I donot know where the tool is in gcc.
It's believed that there had been some tools doing this job when c++ was just spreading, and it seems cfront was one of these; is that like?

Thanks to anyone that helps!
 
Yes,

Cfront did just that. It converted C++ code into C code which could then be compiled. The code it generates is intended to be compiled, not edited however. AT&T developed it. Do not know if it is available anymore.

My guess is that this is not what you are looking for.

Brudnakm.
 
yes, I go to the site but it seems cfront is not free for everyone.
I prefer gcc if there's no more alternatives, though it's not perfict in doing this job.
anyone please help me to find this proccessor in gcc!
anyway, thanks to debasishpramanik and brudnakm!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top