From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: gprof with all zero execution times in version 2.03 Date: 13 May 2003 15:24:57 GMT Organization: Aachen University of Technology (RWTH) Lines: 26 Message-ID: References: <200305121929 DOT h4CJTEN08938 AT delorie DOT com> <5c9be5c2 DOT 0305130628 DOT 45188bfd AT posting DOT google DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1052839497 8693 137.226.32.75 (13 May 2003 15:24:57 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 13 May 2003 15:24:57 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Andre Chrcanovic wrote: > CFLAGS = -mcpu=pentium -pg -c -imacros boot.def -D__DOS__ $(INCLUDES) ^^^^^^^^^^^^^^^^^ Setting aside those issues already raised by the other response, let me comment on this line: 1) No debug flags (-g)? While not strictly needed for profiling, having them in place should be your default. Who knows --- it might even solve your problem. 2) That -imacros override smells fishy. It's impossible to tell what it actually does without seeing that file, boot.def. This being in your control, *you* have to make sure it doesn't interfere with the profiling machinery. > LNKOPTS = -L$(NPCDIR)/bin -L$(PRODIR)/bin -L$(LANDIR)/bin > -L$(TCPDIR)/bin \ > -lnuc00 -lprotocol -llan_n -ltcpip In case of doubt, those libraries may be the cause of your problem, too. E.g. if they weren't built with -pg themselves, or they fiddle with the timers on their own. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.