<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Nov 14, 2006, at 1:07 AM, Nico Moser wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">If you want to emit</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">llvm bytecode be sure to pass -emit-llvm to llvm-gcc.</FONT></P> </BLOCKQUOTE><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Thats the next point:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">$ llvm-gcc4-1.8-x86-darwin/bin/gcc -v -emit-llvm main.c</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">....</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">/usr/bin/ld: unknown flag: -emit-llvm</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">collect2: ld returned 1 exit status</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>The linker does not know how to link llvm-byte code.</DIV><DIV>If you add  -c on the command line</DIV><DIV><BR class="khtml-block-placeholder"></DIV>$ llvm-gcc4-1.8-x86-darwin/bin/gcc -v -emit-llvm main.c<DIV><BR class="khtml-block-placeholder"></DIV><DIV>then you will get llvm-byte code in main.o file. You can</DIV><DIV>select the name of byte code file using standard gcc -o switch.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-</DIV><DIV>Devang</DIV><BR></BODY></HTML>