This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
profiling on sh
- From: "Kris Warkentin" <kewarken at qnx dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Thu, 14 Mar 2002 15:19:06 -0500
- Subject: profiling on sh
Hi,
I'm looking at the FUNCTION_PROFILER macro in gcc/config/sh/sh.h and all it
seems to be doing is 'trapa #33' and then printing a label. Now I looked at
a few other platforms like arm, etc. and they mostly seem to be doing the
same thing: calling mcount() and then setting a label. I'm just wondering
if anyone can explain to me exactly how this is supposed to work on sh? Is
there a trap handler #33 registered somewhere that I can't find? I'm not
getting any call graph data saved in my gmon.out which leads me to think
that mcount is never being called (that, and the fact that there is no
reference to mcount in the binary ;-). I'm seeing lots of bb_* stuff in the
object - is sh using basic block profiling instead? If so, could someone
more expert than I give me a hint as to how to properly make it call mcount
instead? *Whew* I think that's all. ;-)
Thank you
Kris