delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/11/10/12:31:32

Date: Wed, 10 Nov 93 11:34:43 -0500
From: DJ Delorie <dj AT ctron DOT com>
To: rob AT dinner DOT asrc DOT albany DOT edu
Cc: DJGPP AT sun DOT soe DOT clarkson DOT edu
Subject: Re: profiling


> Our hero writes:
> > use "gcc -pg prog".  This will produce the gmon.out file.

> I think you forgot to run it, dude...after *execution* you
> get the gmon.out; at least on unix-like systems.

Yes, you have to run the resulting executable.  OK - so I had a
temporary memory lapse.  What do you want for free?

The actual course of events is thus:

	gcc -pg prog.c -o prog
	go32 prog
	gprof prog > prog.dat

Hero
[Should I put a disclaimer here from now on?]


- Raw text -


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