|
|||||||||||
|
Technical Support Support Resources
Product Information |
C51: Defining the Minimum Stack SizeInformation in this article applies to:
QUESTIONWhen I define more and more data and idata variables in my application, the available stack space decreases. By default, only one byte is reserved for the stack, which is not enough for my application. I want to make sure that the remaining stack space is at least 20 bytes. If I define too many data and idata variables, the linker should report an error message. ANSWERThis is possible. The stack size is defined in the STARTUP code. You may copy the STARTUP.A51 file from the \Keil\C51\LIB folder to your project folder and add this file to your µVision project. Then, the stack size can be modified in this file.
The line DS 1 specifies the stack size. You may change this value according to your needs. 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.