<P>I am trying to obtain native code from the bytecode by using commands:</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>% llc hello.bc -o hello.s</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>% gcc hello.s -o hello.native</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"></FONT></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">This is working for a simple program( a single source file) but when I try to run it on grep utility (grep.bc) , it gives me the following error:</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"></FONT></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>$ llc grep.bc -o grep.s</o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><o:p>$ gcc grep.s -o grep.native<BR>/tmp/ccY3oNAA.o(.text+0x2f2f): In function `main':<BR>: undefined reference to `__main'<BR>collect2: ld returned 1 exit status<BR></P></o:p></FONT></FONT>
<P>How should i fix this?</P>
<P>Thanks</P>
<P>- T</P><p>
                <hr size=1>Do you Yahoo!?<br> 
Yahoo! Small Business - <a href="http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/">Try our new resources site!</a>