ARM setjmp and r12
Schwarz, Konrad
konrad.schwarz@siemens.com
Tue May 2 16:00:00 GMT 2006
> -----Original Message-----
> From: newlib-owner@sourceware.org
> [mailto:newlib-owner@sourceware.org] On Behalf Of Richard Earnshaw
> I don't really think there is any need to save ip here. It
> certainly can't be for the reason Nick cited (since IP can
> only be used transitively for that purpose).
do you mean "transiently" here?
> Another problem
> is that that means we push an odd number of registers, which
> means that any subsequent stores would be unaligned.
>
> I'm not that thrilled with the way that statement is written,
> why is it using the old APCS names, and why stmea (this isn't
> a stack).
>
> @ Push all call-saved registers, plus the return address.
> @ Keep buffer address aligned so we don't have to re-align
> @ before any co-processor registers.
> stmia r0!, {r4-r11, r13, r14}
>
> would be a much more sensible definition.
>
> R.
>
>
More information about the Newlib
mailing list