ARM Technical Support Knowledge Articles

WHERE IS THE USER STACK LOCATED?

Applies to: C166 C Compiler

Answer


Information in this article applies to:


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

Article last edited on: 2005-06-02 03:51:46

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential