www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/28/01:19:00

Date: Wed, 28 Feb 1996 14:08:55 -0800 (GMT)
From: Orlando Andico <oandico AT eee DOT upd DOT edu DOT ph>
To: Martynas Kunigelis <martynas DOT kunigelis AT vm DOT ktu DOT lt>
cc: DJGPP m/l <djgpp AT delorie DOT com>
Subject: Re: gprof problems
In-Reply-To: <199602270921.EAA04383@delorie.com>
Message-ID: <Pine.SOL.3.91.960228140738.8070A-100000@gollum>
MIME-Version: 1.0

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

- Raw text -


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