Keil Logo

C166: Where Is the User Stack Located?


Information in this article applies to:

  • C166 Version 3.12 and later

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, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.