ARM VERSION 1.2 Guide de l'utilisateur Page 16

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 133
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 15
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
Vue de la page 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 132 133

Commentaires sur ces manuels

Pas de commentaire