www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/30/23:00:42

From: Leif <LeifDude AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Cant create GMON.OUT
Date: Thu, 30 Jul 1998 19:47:26 -0700
Organization: NorthWest Nexus Inc.
Lines: 17
Message-ID: <35C1303D.1CD9@Hotmail.com>
NNTP-Posting-Host: blv-pm101-ip21.halcyon.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I would like to do some profiling but for some reason GMON.OUT never
gets written. I compile under RHide using -pg. I have tried many
combinations of -pg -g -o2. When I compile with -pg I do notice the
program running slower as the how-to text said it would. However, after
I quit the program, theres is no file ANYWHERE on my HardDrive named
GMON.OUT . My program does exit normally, I have tried exiting the
program with a return from  main() and tried exiting with  exit; . My
program does exit with code 0. It seems I have done ALL the neccessary
steps but it wont produce the sneaky GMON.OUT :( One thing I was unsure
about is in the how-to text it says you must also link with the -pg
option. So I tried putting -pg into Linker Options and there was an
error saying the linker didnt recognize -pg. So I looked at the docs for
ld.exe and gcc.exe and couldnt find anything about -pg or profiling
options.  

Can anyone help me produce GMON.OUT, prefferably from RHide, but I will
settle for command line methods :)

- Raw text -


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