Mail Archives: djgpp/1998/03/31/03:03:30
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.
- Raw text -