Conditional call instruction
Geoff Keating
geoffk@geoffk.org
Wed Feb 13 15:48:00 GMT 2002
> cc: Dale Johannesen <dalej@apple.com>, gcc@gcc.gnu.org
> Date: Wed, 13 Feb 2002 17:56:04 -0500
> From: David Edelsohn <dje@watson.ibm.com>
> X-OriginalArrivalTime: 13 Feb 2002 22:56:06.0531 (UTC) FILETIME=[9EA48D30:01C1B4E1]
>
> >>>>> Geoff Keating writes:
>
> Geoff> It is unusable because the range of the call is only 32k.
>
> That limitation only affects the branch instructions with a target
> address. What is more useful on PowerPC are the branch condition to count
> register (bcctr) and branch conditional to link register (bclr)
> instructions which allow conditional call (at the expense of placing the
> target address in a register) and conditional return.
Conditional return we do now, so that's OK.
I'm not sure about conditional indirect calls. If they started to be
used for direct calls, they might turn out to be slower than a call
with a branch around it, because of lack of prefetching.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
More information about the Gcc
mailing list