SH profiling redux
Stephen Clarke
Stephen.Clarke@st.com
Mon Mar 25 20:07:00 GMT 2002
kewarken@qnx.com wrote:
> #define MCOUNT \
> __asm__(".globl _mcount\n" \
> "_mcount:\n" \
> "mov.l __mcount_addr,r1\n" \
> "mov.l @(4,r15),r3\n" \
> "mov.l r4,@-r15\n" \
> "mov.l r5,@-r15\n" \
> "mov.l r6,@-r15\n" \
> "mov.l r7,@-r15\n" \
> "sts pr,r5 \n" \
> "mov r3,r4 \n" \
> "add #4,r5 \n" \
^^^
Are you sure this inst is correct - I can't stop myself from thinking
it ought to be "add #6,r5" ...
> [...]
Steve.
--
Stephen Clarke, Principal Engineer, SuperH Inc.
Phone:1-408-922-4062, Fax:1-408-954-8507, mailto:Stephen.Clarke@st.com
Mail: SuperH Inc., 3801 Zanker Rd., San Jose, CA 95134, USA.
More information about the Gcc
mailing list