Changing the Default Allocation

You can change the default memory allocation of objects with static storage duration by either:

If you wish to prevent objects from using one or more data memory locations so that these locations can be used for some other purpose, you are best reserving the memory using the memory adjust options. See Reserve Option for information on how to do this.

Objects can be placed in specific memory banks using the __bank() specifier (see Bank Type Qualifier).

If only a few objects are to be located at specific addresses in data space memory, then those objects can be made absolute (described in Absolute Variables). Since absolute objects have a known address, they do not follow the normal memory allocation procedure.

Objects can also be placed in their own section by using the __section() specifier, allowing this section to be linked at the required location (see Changing and Linking the Allocated Section).