This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SH profiling redux
- From: Stephen Clarke <Stephen dot Clarke at st dot com>
- To: kewarken at qnx dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 25 Mar 2002 18:42:59 -0800
- Subject: Re: SH profiling redux
- Organization: SuperH
- References: <1fcb01c1d42a$96e66100$b6010c0a@catdog>
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.