[LLVMdev] gcc 4 frontend binary for mac os x x86

Devang Patel dpatel at apple.com
Tue Nov 14 01:21:17 PST 2006


On Nov 14, 2006, at 1:07 AM, Nico Moser wrote:

>> If you want to emit
>> llvm bytecode be sure to pass -emit-llvm to llvm-gcc.
>
> Thats the next point:
> $ llvm-gcc4-1.8-x86-darwin/bin/gcc -v -emit-llvm main.c
> ....
> /usr/bin/ld: unknown flag: -emit-llvm
> collect2: ld returned 1 exit status

The linker does not know how to link llvm-byte code.
If you add  -c on the command line

$ llvm-gcc4-1.8-x86-darwin/bin/gcc -v -emit-llvm main.c

then you will get llvm-byte code in main.o file. You can
select the name of byte code file using standard gcc -o switch.

-
Devang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20061114/a3e45d8e/attachment.html>


More information about the llvm-dev mailing list