I agree that if frame pointer brings a too big overhead, it should not
be used.
Sorry to ask, I feel I must be missing something, but I'm trying to
figure out where you propose to add the "call mcount" ? In the caller or
in the callee ?
In the caller, I guess it would replace the normal function call, call a
trampoline which would jump to the normal code.
In the callee, as what is currently done with -pg, the callee would have
a call mcount at the beginning of the function.
Or is it a different scheme I don't see ? I am trying to figure out how
you happen to do all that without dynamic code modification and manage
not to hurt performance.
Mathieu
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
--