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 operatornewThe 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.