delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/18/01:49:48

From: "John M. Aldrich" <fighteer AT cs DOT com>
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: <Pine DOT 3 DOT 89 DOT 9705130948 DOT B2877-0100000 AT alpha DOT hcst DOT com> <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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019