Options — C251 Compiler — Memory Model — Memory Model.
Description
This directive implements the XTINY memory model. The
XTINY memory model places all function variables and local
data segments in the near memory of the 251 system. This
ensures efficient access to near data objects. The default data
pointer size is 2 bytes and refers to near (NDATA / NCONST)
space.
Regardless of memory model type, you may declare variables in any
of the 251 memory areas. However, placing frequently used directives
(such as loop counters and array indices) in data memory
significantly improves system performance.
Note
The stack required for function calls is always placed in near
memory, refered as memory class EDATA.
The XTINY memory model is typically the best choice for
applications with medium data requirements.
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.