|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Mixing Memory Models and Memory AreasInformation in this article applies to:
QUESTIONWe have a large memory configuration (external RAM of 64K code and 64K XData). We would like to use the external data for buffers, queues, and so on. Is there a compiler option to use the internal RAM (256 -32 bytes) for our stack? We do not want to use the simulated stack because of inefficiency. ANSWERThe compiler is completely flexible in where you locate variables, buffers, reentrant stacks, and so on. You may specify different memory models for each function in your program, different memory models for reentrant functions, and for each variable. For example:
SEE ALSOLast 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.