Keil™, An ARM® Company

Technical Support

C166: WHERE IS THE USER STACK LOCATED?


Information in this article applies to:

  • C166 Version 3.12
  • C166 Version 4.03

QUESTION

In which memory class is the USER STACK located?

ANSWER

The user stack is located in the NDATA memory class. This is defined in the startup code in START167.A66 or STARTUP.A66 as shown below:

PUBLIC          ?C_USRSTKBOT

?C_USERSTACK    SECTION DATA PUBLIC 'NDATA'
$IF NOT TINY
NDATA           DGROUP  ?C_USERSTACK
$ENDIF
?C_USRSTKBOT:
                DS      USTSZ           ; Size of User Stack
?C_USERSTKTOP:
?C_USERSTACK    ENDS

You may declare the amount of space reserved for the stack by setting the USTSZ variable in the startup code.

SEE ALSO

Last Reviewed: Thursday, June 02, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure