User guide

Note
The names __ARM_stack_overflow and __Thumb_stack_overflow are illustrative and do not correspond to
any actual implementation.
Routine using more than 256 bytes of stack
In this case, a new value of sp must be proposed to the limit-checking code using a sequence such as the following:
SUB ip, sp, #size ; ARM code version
CMP ip, sl
BLLO __ARM_stack_overflow
or in Thumb code:
LDR r7, #-size ; Thumb code version
ADD r7, sp
CMP r7, sl
BLLO __Thumb_stack_overflow
This is necessary to ensure that sp cannot become less than the lowest usable address in the stack.
Note
The names __ARM_stack_overflow and __Thumb_stack_overflow are illustrative and do not correspond to
any actual implementation.
Using the Procedure Call Standard
Copyright ?1999 2001 ARM Limited 2-8