Re: Translate C++ to C

From: Mohd Hanafiah Abdullah (napi_at_cs.indiana.edu)
Date: 03/30/05


Date: Wed, 30 Mar 2005 07:09:15 +0000 (UTC)

In article <SLadncQbd-Q7ptffRVn-iQ@rogers.com>,
Peter MacMillan <peter@writeopen.com> wrote:
>ganesh_tiwari@hotmail.com wrote:
>> 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

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

Napi

-- 
http://www.axiomsol.com
http://www.cs.indiana.edu/hyplan/napi.html


Relevant Pages

  • Re: Translate C++ to C
    ... > source compiler to do this. ... i hear that LLVM can emit C from C++: ...
    (comp.lang.cpp)
  • Re: Translate C++ to C
    ... Gancy wrote: ... > source compiler to do this. ... On some modern C++ compilers there is an option to generate C code ...
    (comp.lang.c)