|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Locating the Stack after IDATA VariablesInformation in this article applies to:
QUESTIONI'm using some idata variables in my program. I want to make sure that the stack doesn't overwrite them. What do I need to do? ANSWERThe following example program declares variables as you describe:
When compiled and linked, the following Link Map is generated in the MAP file output by the linker.
Note that the idata variables declared come before the stack. The stack on the 8051 grows up. Therefore, there is nothing you must do to avoid overwriting your idata variables. SEE ALSO
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
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.