<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>Actually I started with hello.cpp povided as an example pass and modified and made my pass which does randomization. I have been working on it and running over programs and it always worked fine but now lately i had checked out a newer version (llvm)which i believed was working fine too but now as i did some modifications and tried to compile my pass i got these errors.</DIV>
<DIV> </DIV>
<DIV>My pass simply randomization of basic blocks.</DIV>
<DIV> </DIV>
<DIV>Also I have yet not found a simple way to calculate basic block size in a function.There are tools that give me function size in bytes etc etc ....but not of basic block.I got reply that I have to see what my block does and then calculate size...what does that mean ? iterating over instructions and add the size of the instructions ?how do i determine that ?</DIV>
<DIV> </DIV>
<DIV>Sorry for tons of questions but I would appreciate your help :-)</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV>Tanu<BR><BR><B><I>Chris Lattner <sabre@nondot.org></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Thu, 21 Apr 2005, Tanu Sharma wrote:<BR>> I am trying to rum my pass (.cpp file) and I am getting the following error.<BR><BR>Can you give a little more context about what you're doing?<BR><BR>-Chris<BR><BR><BR>> ----------------------------------------------------------------------------------------------------------------<BR>><BR>> g++: /usr/lib/gcc/i386-redhat-linux/3.4.2/../../../crti.o: No such file or directory<BR>> g++: /usr/lib/gcc/i386-redhat-linux/3.4.2/crtbeginS.o: No such file or directory<BR>> g++: /usr/lib/gcc/i386-redhat-linux/3.4.2/crtendS.o: No such file or directory<BR>> g++: /usr/lib/gcc/i386-redhat-linux/3.4.2/../../../crtn.o: No such file or directory<BR>> ---------------------------------------------------------------------------------------------------------------<BR>><BR>> It seems the error just appreared from nowhere.!
 Earlier
 it was working fine.I had also checked out the latest version from cvs sometime back but feel I worked on that for sometime before this appeared.<BR>><BR>> How can I fix it?Is it changing llvm parameters for c++ or requires patch or something fom linux?<BR>><BR>> Thanks<BR>><BR>> - T<BR>><BR>> __________________________________________________<BR>> Do You Yahoo!?<BR>> Tired of spam? Yahoo! Mail has the best spam protection around<BR>> http://mail.yahoo.com<BR><BR>-Chris<BR><BR>-- <BR>http://nondot.org/sabre/<BR>http://llvm.cs.uiuc.edu/<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! Small Business - <a href="http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/">Try our new resources site!</a>