[LLVMdev] compiling bitccode to executable binary/LLI
Eric Christopher
echristo at apple.com
Fri Apr 1 15:06:44 PDT 2011
On Apr 1, 2011, at 11:39 AM, Reid Kleckner wrote:
> The easiest way is just to invoke clang on the .bc file, since it
> understands it.
> clang file.bc -o file
>
> llc will get you native assembly, which you can assemble and link with gcc.
> llc file.bc -o file.s && gcc file.s -o file
>
> I couldn't find a way to convince llc to use MC to generate an object
> file.
-filetype=obj :)
-eric
More information about the llvm-dev
mailing list