www.delorie.com/djgpp/v2faq/faq106.html | search |
| Previous | Next | Up | Top |
Q: When I compile my program with -pg, it runs much slower. Does the profiling code have such a huge overhead?
Q: I profiled my program, but the profile contains an entry _mono_putc
which I don't use, and which eats up about 70% of execution time!
Q: When I run a profiled program on my dual (VGA+MDA) display system, the mono screen shows loads of meaningless numbers. Is there a way to stop this behavior?
A patch which corrects this bug was posted to the DJGPP News group; you can find it by searching the DJGPP mail archives. The patched library (see a better library) includes a fixed version of the offending function, so using the patched libc will solve these crashes (as will upgrading to v2.02, when that is available). A work-around is to run the program compiled with -pg on vanilla DOS configuration (no memory managers such as EMM386 or QEMM, and no Windows). However, when you use this work-around, your program might run much slower, although the profile that you get is not affected.
webmaster donations bookstore | delorie software privacy |
Copyright ⌐ 1998 by Eli Zaretskii | Updated Sep 1998 |
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)