ARM Technical Support Knowledge Articles

OPTIMIZING VARIABLE MEMORY TYPES

Applies to: uVision IDE

Answer


Information in this article applies to:


SYMPTOMS

When creating large programs with numerous global variables, variable memory spaces may be optimized to provide faster access and smaller generated code.

CAUSE

Frequently used variables may be moved from the default memory space into a more efficiently accessed memory area.

RESOLUTION

Use the source browser in uVision to display the variables used in your program. Click on the Uses column to sort the list of variables by the number of times the variable is used. Modify your code to locate the most frequently used variables in near memory (if possible). This will speed up access to these variables.

MORE INFORMATION

Refer to page 42 in the Getting Started and Creating Applications with uVision and the 166/ST10 User's Guide 07.99.

SEE ALSO

Article last edited on: 2005-08-03 13:12:40

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