[LLVMdev] llvm-gcc is generating native code

Chris Lattner sabre at nondot.org
Fri Feb 15 15:32:04 PST 2008


On Feb 15, 2008, at 3:15 PM, Fernando Magno Quintao Pereira wrote:

>
> Hi, Ashwin,
>
>     I think what you want is to add -emit-llvm after llvm-gcc, like:
>
> $> llvm-gcc foo.c -o foo.bc -c -emit-llvm

Or you can pass -O4, which is -O3 + -emit-llvm.

-Chris




More information about the llvm-dev mailing list