'bx lr' vs 'mov pc,lr'
u.kleine-koenig at pengutronix.de
Mon Sep 14 03:35:14 EDT 2009
On Mon, Sep 14, 2009 at 04:47:35AM +0300, Felipe Contreras wrote:
> On Mon, Sep 14, 2009 at 3:20 AM, Jamie Lokier <jamie at shareable.org> wrote:
> > Felipe Contreras wrote:
> >> > Why do you want bx? bx isn't available on older CPUs.
> >> Isn't it faster? I don't know if it would make sense to try it on
> >> newer CPUs.
> > That's interesting. Do you know if it's faster?
> Nope, I'm assuming because of this:
For ARM9EJ-S the docs can be found at
. bx takes 3 cycles, mov (with dest=pc) takes 4 cycles.
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the linux-arm-kernel