From: gareth Bushell Newsgroups: comp.os.msdos.djgpp Subject: Re: Profiling code Date: Wed, 01 Apr 1998 08:31:41 GMT Organization: CBL Technology Ltd Message-ID: <564158410wnr@cblsouth.demon.co.uk> References: Reply-To: gbushell AT cblsouth DOT demon DOT co DOT uk Lines: 36 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article: Eli Zaretskii writes: > > > On Mon, 30 Mar 1998, gareth Bushell wrote: > > > I am trying to optimize some code so I thought I'd use gprof. > > the problem is that when I run the code the table output by > > gprof contains an entry _mono_putc. I don't use this function but it is > > taking up almost 70% of the execution time. > > This is a FAQ. Section 13.2 of the DJGPP FAQ list explains that there > is a bug in a library function used by programs compiled with -pg > which causes this (and can even crash profiled programs in some > configurations). Get a patched version of the library from Tom > Demmer's site and relink your program against it. > > Err.. sorry for being so Stupid but I can't speek german and the only site for "Tom Demmer" is in german so if you could help me out with this link I would be gratful. (I have only got web access at work and my boss frowns on over use and its slow 28k) Cheers Garth -- -------------------------------------------------- Email : garth_42 AT rock DOT com