C51: STACK UTILIZATION
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.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Friday, January 30, 2015
of your data.