ARM VERSION 1.2 Uživatelská příručka Strana 16

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 133
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 132 133

Komentáře k této Příručce

Žádné komentáře