<DIV>Thanks for replying .</DIV>
<DIV> </DIV>
<DIV>I came across another problem while trying it.</DIV>
<DIV>The following compilation is not working: ( with the native option)</DIV>
<DIV> </DIV>
<DIV><STRONG>llvmgcc x.c -o a.out -Wl,-native</STRONG><BR></DIV>
<DIV>I get this error:</DIV>
<DIV> </DIV>
<DIV><STRONG> gccld: a.out.s: Can't destroy file: ut.s</STRONG></DIV>
<DIV> </DIV>
<DIV>How can I fix that ?</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV>Tanu<BR><BR><B><I>Andrew Lenharth <alenhar2@cs.uiuc.edu></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Sat, 2005-02-26 at 22:34 -0600, Chris Lattner wrote:<BR>> On Sat, 26 Feb 2005, Tanu Sharma wrote:<BR>> <BR>> > Thanks for the reply :-)<BR>> > I am actually looking for ways to determine "size" of code segment when the program is in native code.<BR>> > Any suggestions to do that ?<BR>> <BR>> Compile it with llvm to a native .o or .exe file, then run 'size' on it?<BR>> <BR>> E.g.:<BR>> <BR>> llvm-gcc x.c -o a.out -Wl,-native<BR>> size ./a.out<BR><BR>objdump -h a.out<BR><BR>and add the size columns for all sections marked with "CODE"?<BR><BR>Andrew Lenharth<BR><BR>_______________________________________________<BR>LLVM Developers mailing list<BR>LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu<BR>http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev<BR></BLOCKQUOTE><p>
                <hr size=1>Do you Yahoo!?<br> 
Yahoo! Mail - now with 250MB free storage. <a href="http://us.rd.yahoo.com/evt=29914/*http://info.mail.yahoo.com/mail_250">Learn more.</a>