[LLVMdev] compile libstdc++ to LLVM bitcode
Le Anh Quang
anhquangbk at googlemail.com
Fri Jul 25 14:02:43 PDT 2008
@duncan: thank for your advice :),
Has somebody already tried to compile libstdc++ to LLVM bitcode ? is there
any help document for it ?
Thanks for any help
Quang
-----Ursprüngliche Nachricht-----
Von: Duncan Sands [mailto:baldrick at free.fr]
Gesendet: Donnerstag, 24. Juli 2008 20:45
An: llvmdev at cs.uiuc.edu
Cc: Le Anh Quang
Betreff: Re: [LLVMdev] weird function
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