From: mdruiter AT cs DOT vu DOT nl (Ruiter de M) Newsgroups: comp.os.msdos.djgpp Subject: Re: Any way to speed up profiling? Date: 23 May 1997 12:51:58 GMT Organization: Fac. Wiskunde & Informatica, VU, Amsterdam Message-ID: <5m43te$ekf@star.cs.vu.nl> References: <5lt4dh$h7t$1 AT superb DOT csc DOT ti DOT com> NNTP-Posting-Host: keg.cs.vu.nl Lines: 19 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Edward Mueller (Ed DOT Mueller AT itg DOT ti DOT com) wrote: : When I use -pg to compile/link, the resulting executable runs so slowly : I thought my machine was hung. Any way to make profiling (mcount) not : take up so much time? I'm using the version of mcount.c that doesn't call : mono_printf. I also tried setting the interrupt interval to 65535 instead of : 5494. Thanks. Hmmm, I thought: "Let's tell him about the mcount-bug", but if you say that's fixed... If nothing else works, try compiling with -O2 or -O3 (it _does_ work with -pg), maybe with -minline-functions. This gets rid of much of the function calls, which might speed things up, but this also means you can't profile those functions. I hope someone else has got a better answer for you :) -- Groeten, Michel. http://www.cs.vu.nl/~mdruiter \----/==\----/ \ / \ / "Als je voetbalcriminaliteit wilt tegengaan, \/ \/ moet je ophouden met voetballen", Nordholt.