ARM Technical Support Knowledge Articles

VARIABLES CREATED IN XDATA USING SMALL MODEL

Applies to: C51 C Compiler

Answer


Information in this article applies to:


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 uVision project.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-15 10:02:18

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential