Keil Logo

µVISION: OPTIMIZING VARIABLE MEMORY TYPES


Information in this article applies to:

  • C166 Version 4.02
  • C51 Version 6.00

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 µVision 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 µVision and the 166/ST10 User's Guide 07.99.

SEE ALSO

Last Reviewed: Wednesday, August 3, 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.