|
|||||||||||
Technical Support Support Resources
Product Information |
C166: Putting Initialized Variables in XDATAInformation in this article applies to:
SYMPTOMSI have a very large program with many large, initialized variables. When I build my project, I receive one of the following error messages:
CAUSEThis error occurs because the section used to initialize global variables is overflowing. The following example program demonstrates this error.
RESOLUTIONThe best solution is to place some of your variables in XDATA by using the XHUGE memory type when you declare the variable. For example:
MORE INFORMATION
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.