[LLVMdev] C++ to C

Chris Lattner sabre at nondot.org
Fri Nov 17 11:43:26 PST 2006


On Fri, 17 Nov 2006, John Criswell wrote:
> I don't think you will need to deal with any names.  The C++ standard
> library has already been compiled to LLVM bytecode (it is part of the
> llvm-gcc/llvm-g++ distribution).  If you use "llvm-g++ -lstdc++" it
> should link in whatever libstdc++ functions are needed by your program;
> they will get translated to C code along with the rest of your program
> when you use llc.

Note that that only works with llvm-gcc3.  With llvm-gcc4 you need to 
compile libstdc++ to bytecode explicitly.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list