From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Any tips on optimizing C code? Date: Sun, 18 May 1997 00:31:51 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 17 Message-ID: <337E4DF7.725@cs.com> References: <337c7efb DOT 7433556 AT news DOT cis DOT yale DOT edu> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp206.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk jon wrote: > > gprof example.exe > > produces, in brief, a "gmon.out not found." Don't know what gmon.out > is/was. You must compile _and_ link your program with the -pg switch, and then do a complete run to actually generate the profile information. This is discussed in chapter 13 of the FAQ. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | Proud owner of what might one | http://www.cs.com/fighteer | | day be a spectacular MUD... | Plan: To make Bill Gates suffer | ---------------------------------------------------------------------