delorie.com/archives/browse.cgi | search |
Message-ID: | <3879196E.8B3DF7E3@ou.edu> |
From: | David Cleaver <davidis AT ou DOT edu> |
X-Mailer: | Mozilla 4.7 [en] (Win98; I) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | another gprof problem |
Lines: | 37 |
Date: | Sun, 09 Jan 2000 17:27:42 -0600 |
NNTP-Posting-Host: | 129.15.140.115 |
X-Complaints-To: | usenet AT ou DOT edu |
X-Trace: | news.ou.edu 947460395 129.15.140.115 (Sun, 09 Jan 2000 17:26:35 CST) |
NNTP-Posting-Date: | Sun, 09 Jan 2000 17:26:35 CST |
Organization: | The University of Oklahoma |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hi Everyone, I have had DJGPP for a while and have recently decided to start profiling my programs. I have pasted below a recreation of the problem that I am having... //================================================================== C:\MyPrograms\CFiles>gcc -o prime prime.c -pg C:\MyPrograms\CFiles>prime 999999999999989 is prime It took 2 seconds to determine primality C:\MyPrograms\CFiles>gprof -b prime Flat profile: Each sample counts as 0.055556 seconds. % cumulative self self total time seconds seconds calls Ts/call Ts/call name 100.00 0.06 0.06 __umoddi3 0.00 0.06 0.00 2 0.00 0.00 fxn1 0.00 0.06 0.00 1 0.00 0.00 isPrime 0.00 0.06 0.00 1 0.00 0.00 main 0.00 0.06 0.00 1 0.00 0.00 fxn4 * Call graph (you get the picture...) //================================================================== Ok, So, you see that it compiled just fine. You see that it ran just fine too. Now, the weird thing is that when I run gprof, my program doesn't run. I would really appreciate it if someone could give me some insight into what is going wrong here. -David C.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |