[LLVMdev] Linking a bc file

Anton Korobeynikov anton at korobeynikov.info
Mon Nov 22 13:31:55 PST 2010


Hello Alexandre,

> I'm trying to test a bitcode file that I created using the LLVM API. Using llvm-g++, how can I compile.a C++ file and link it against my bc file ? I try to call a single function in the bc file from the c++ main function.
You need to have a linker which supports linking of LLVM bitcode. So
far this is darwin linker and gold with extra plugin. This doc might
be helpful: http://llvm.org/docs/GoldPlugin.html

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list