[LLVMdev] C++ to C?
dalej at apple.com
Sat Oct 11 12:33:34 PDT 2008
On Oct 11, 2008, at 12:49 AM, Duncan Sands wrote:
> On Friday 10 October 2008 20:29:49 Michael wrote:
>> What command and options should be used to convert C++ to C?
> Try this:
> llvm-gcc -c -O3 -emit-llvm file.cpp -o - | llc -march=c -o -
> It should spray C code to standard out.
Bear in mind that if you use features from the C++ library, you are
still going to need a C++ library.
llvm does not try to translate iostream into stdio calls or anything
More information about the llvm-dev