Keil Logo

C51: VARIABLES CREATED IN XDATA USING SMALL MODEL


Information in this article applies to:

  • C51 All Versions

QUESTION

Although I select Memory Model Small: Variables in DATA, the data variables in my program are being created in extended memory (XDATA). How can this happen?

ANSWER

Somewhere in your source code you have a #pragma statement specifying the LARGE or LA control directive. When the compiler finds this directive in the source code, it builds local variables and data segments in extended memory (XDATA) instead of using the Memory Model selection in the µVision project.

MORE INFORMATION

  • Refer to LARGE in the Cx51 User's Guide.

SEE ALSO

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

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.