[LLVMdev] bc file only with llvm-gcc3?

Dale Johannesen dalej at apple.com
Wed Sep 17 14:41:54 PDT 2008


On Sep 17, 2008, at 2:36 PMPDT, Michael Reichenbach wrote:
>
> No matter if I try "
> llvm-g++ a.cpp -c -emit-llvm
> " with "LLVM-GCC 4.2 Front End Binaries for Mingw32/x86" on Windows XP
> or if I am trying it on Ubuntu...
>
> Only the a.o file will be created without any error messages. The .bc
> file will not be created, do you know why?

-emit-llvm doesn't change the default name for the -c output.
The .o file should be llvm binary IR; if you want it named .bc, use -o  
a.bc
If you're starting out, probably -S -emit-llvm is more useful, you can  
read that format.




More information about the llvm-dev mailing list