A memory type (near, idata, sdata, or
bdata)
and a size between 0 and 16384.
Default
HOLD (near 6)
µVision
Options — Target — Data.
Description
The HOLD directive allows you to locate smaller data
objects in the near, idata, sdata, or
bdata memory areas instead of the default memory space
associated with the memory model. These memory areas are accessed
more efficiently than the far or huge memory areas.
By default, objects are located in the memory space specified by
the selected memory model. Objects that are 6 bytes or smaller in
size are located in the NEAR memory space. Objects that require more
than 6 bytes of memory are located in the far or huge
memory areas (in the LARGE, HLARGE, XLARGECOMPACT, or HCOMPACT memory models).
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.