[LLVMdev] weird function
Duncan Sands
baldrick at free.fr
Thu Jul 24 08:48:45 PDT 2008
Hi,
> thank for your answer. Is there any document/tutorial about linking
> bytecode file with libstdc++ avaiable ?
first you need to compile the bitcode to assembler using llc.
For example:
llc bitcode.bc
This produces bitcode.s. Turn this into a executable using:
llvm-g++ -o bitcode bitcode.s
or
g++ -o bitcode bitcode.s
It doesn't matter which g++ you use here. Using g++ means
that your program will automatically be linked with libstdc++.
I hope this helps,
Duncan.
More information about the llvm-dev
mailing list