Date: Wed, 28 Feb 1996 14:08:55 -0800 (GMT) From: Orlando Andico To: Martynas Kunigelis cc: DJGPP m/l Subject: Re: gprof problems In-Reply-To: <199602270921.EAA04383@delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 27 Feb 1996, Martynas Kunigelis wrote: > First, I have read the FAQ, but found nothing... The problem is: whenever I > try to run gprof on a COFF image compiled with the -pg switch, it complains > about a missing file `gmon.out'. However, if I simply run `redir -t' on my > program, the mentioned file is created and I can run gprof OK. I studied the > sources of redir, it just merely calls time() if the -t switch is specified. > So what gives? I've no idea. You're supposed to run the (.EXE) program *first*, which creates the file gmon.out, then you run gprof on the COFF image. I think gprof just extracts the symbol information from the COFF image and spits it to stdout. I've never had to use redir. ------------------------ Orlando A. Andico oandico AT eee DOT upd DOT edu DOT ph ------------------------