[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ARM EABI port: minimum CPU choice



> > Is there any reason not to make ldm the default for armv4 and above,
> > since it seems to win most, among the various options?
>
> Two reasons: because it requires the return address to be on the stack
> (which often requires adding another instruction to get it there), and
> because LDM is quite a slow instruction on Intel CPUs.  That said, in
> the specific case of Debian it's possible that these disadvantages are
> outweighed by the compatibility benefits.

I don't think the "Intel is slow" applys in this case because ldr has the same 
semantics as ldm, and the complier should automatically pick the appropriate 
form. Of course if ldr is also slow on Intel cpus...

Paul



Reply to: