Skip to main content

IAR Embedded Workbench for RH850 3.20.x

Data models

In this section:

Use data models to specify in which part of memory the compiler should place static and global variables by default. This means that the data model controls:

  • The default memory type

  • The default placement of static and global variables, and constant literals

  • Dynamically allocated data, for example data allocated with malloc, or, in C++, the operator new

  • The placement of the runtime stack.

The data model only specifies the default memory type. It is possible to override this for individual variables and pointers. For information about how to specify a memory type for individual objects, see Using data memory attributes.

Note

Your choice of data model does not affect the placement of code.