ARM Technical Support Knowledge Articles


Applies to: C51 C Compiler


Information in this article applies to:


How does the C51 compiler utilize the stack?


The 8051 hardware stack is used for:

While the 8051 architecture restricts the stack to internal memory, it may be located at any point therein. The stack typically starts following the last individual variable allocation in internal memory and is free to grow *up* through whatever memory remains. C51 stack usage is minimal.

Automatic, local variables are overlaid in internal data memory using a strategy that maximizes memory utilization. This is similar to the method used by the Intel PL/M-51 programming language.


Article last edited on: 2004-05-16 17:01:18

Rate this article

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