Angus Leeming wrote:
Linking here takes over an hour with Debian unstable's gcc 4.0.2, ld 2.16, so I'm not really in a position to do too much experimentation. However, there's no reason why you couldn't generate a similar profiling executable using the configure command that I posted. Presumably, linking times for you will be much shorter if you're using gcc < 4.
Angus, as far as I know it is possible to run gprof on a binary that does not have debug info. All you loose is the line numbers and such niceties.
JMarc