From: quacci AT vera DOT com (jon) Newsgroups: comp.os.msdos.djgpp Subject: Re: Any tips on optimizing C code? Date: Mon, 19 May 1997 03:19:59 GMT Organization: Yale University Message-ID: <337fc3cc.7047272@news.cis.yale.edu> References: NNTP-Posting-Host: slip-ppp-node-02.cs.yale.edu Lines: 34 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Sun, 18 May 1997 14:29:15 GMT, Eli Zaretskii wrote: > >On Fri, 16 May 1997, jon wrote: > >> I didn't even know I had gprof on my computer- but I do. Now, how do I >> use it? running >> >> gprof example.exe >> >> produces, in brief, a "gmon.out not found." Don't know what gmon.out >> is/was. > >The FAQ explains a few facts of life about gprof in chapter 13. Thanks for the tip. Also in this thread I was introduced to http://www.delorie.com/gnu/docs/binutils-2.8/gprof_toc.html which is even more detailed. I'm still not successful at producing a gmon.out file- I think this has something to do with my RHIDE setup separating the compile and link in a way such that I don't actually link with any reference to the needed special output-file option. I'll probably solve this tommorow when I have a 1/2 hour or so to check. Thanks to everyone for this great thread- has helped a lot. BTW, Brennan's page has an excellent section on optimization which I had missed in the past.