delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/01/18:21:13

From: xholp09 AT drson DOT vse DOT cz (Pavel Holejsovsky)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gprof doesn't work!
Date: 1 Mar 1997 14:36:01 GMT
Organization: VSE na Zizkove
Lines: 26
Message-ID: <5f9esh$jqp@vse470.vse.cz>
References: <5f8ch4$9te AT freenet-news DOT carleton DOT ca>
NNTP-Posting-Host: drson.vse.cz
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire (ao950 AT FreeNet DOT Carleton DOT CA) wrote:


: I wanted to profile a chunk of code. So, in RHIDE I set the Link for
: Profiling option on, and I set the compiler debugging options "-pg" flag
: on, and I recompiled the file with the area to profile and linked and ran
: it. It created a file named gmon.out. Then I launched a dos shell, and
: entered gprof gmon.out, and it said:
          ^^^^^^^^^^^^^^

: c:/djgpp/bin/gprof.exe: gmon.out: not in a.out format

If I remember correctly, gprof takes name of your executable as a parameter. 
gmon.out is searched by default and you need not specify it on gprof's 
commandline. Correct commandline is:

gprof <yourprogramname.exe>

If you have djgpp 2.01, then exe should work, in 2.00 you would have to use
plain coff file as parameter.

But I cannot prove that I'm right, because I'm sitting 
at school with no access to any djgpp installation.

Hope it helps 
Pavel

- Raw text -


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