Translate C++ to C

G

ganesh_tiwari

Hi all,
Are there any version of g++ that translates C++ to C. or any open
source compiler to do this.

Thanks
Ganesh
 
P

Peter MacMillan

Hi all,
Are there any version of g++ that translates C++ to C. or any open
source compiler to do this.

Thanks
Ganesh

Although I haven't tried it, i hear that LLVM can emit C from C++:
http://llvm.cs.uiuc.edu/

examine the "c" option to llc and have fun - and ask them for help ;)
http://llvm.cs.uiuc.edu/docs/CommandGuide/html/llc.html



--
Peter MacMillan
e-mail/msn: (e-mail address removed)
icq: 1-874-927

GCS/IT/L d-(-)>-pu s():(-) a- C+++(++++)>$ UL>$ P++ L+ E-(-) W++(+++)>$
N o w++>$ O !M- V PS PE Y+ t++ 5 X R* tv- b++(+) DI D+(++)>$ G e++ h r--
y(--)
 
R

Rolf Magnus

Mohd said:
Good, since now there's now an alternative to the pricey C++ to C
translator by EDG.

There's also Comeau. Not for free, but IMHO affordable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
ClayE7480

Latest Threads

Top