Changing The Default Allocation

You can change the default memory allocation of const-specified objects by either:

If you wish to prevent variables from using one or more program memory locations so the locations can be used for some other purpose, it is recommended to reserve the memory using the memory adjust options. See Reserve Option for information on how to do this.

If only a few const objects are to be located at specific addresses in program space memory, then the objects can be made absolute. Absolute variables are described in Absolute Variables.

Objects in program memory 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).