[LLVMdev] C++ to C

Mohd-Hanafiah Abdullah napi at axiomsol.com
Fri Nov 17 17:41:53 PST 2006


On Fri, 2006-11-17 at 11:43 -0800, Chris Lattner wrote:
> 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.

In llvm-gcc3 where could I find the bytecode version of libstdc++ ?

Thanks.

Napi




More information about the llvm-dev mailing list