Mail Archives: djgpp/1996/02/28/01:19:00
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 -