Date: Tue, 31 Mar 1998 11:01:30 +0300 (IDT) From: Eli Zaretskii To: gareth Bushell cc: djgpp AT delorie DOT com Subject: Re: Profiling code In-Reply-To: <33381433wnr@cblsouth.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.