[LLVMdev] weird function

Duncan Sands baldrick at free.fr
Thu Jul 24 11:44:40 PDT 2008


Hi Quang,

>  As I compiled a C or C++ program using llvm-gcc or llvm-g++, I have a
> bitcode file. If a C++ library is used, some functions will be declared
> inside it, but not defined there (like the @_Znwj). Is it possible to create
> LLVM IR with all libraries defined inside (or linked with another bitcode
> libraries) ?

I don't know how hard it would be to compile the C++ standard library to
bitcode.  I've done this for Ada (which also has a substantial runtime
and standard library): compiling the runtime and standard libraries to
bitcode; then linking bitcode for some program with it, optimizing the
linked bitcode (LTO), and producing a final executable.

Ciao,

Duncan.



More information about the llvm-dev mailing list