4.3.4.6 Why Would I Need to Place Data Into Its Own Section?
The MPLAB XC-DSC Object Linker will place data
into sections efficiently. However, you may want to manually place groups of variables into
sections because it is easier than manually placing each individual variable at a specific
address. If necessary, absolute starting addresses may be specified in user-defined
sections within the device linker script. To place data into its own section, you can use
the section
attribute, discussed further in the 9.10 Variable Attributes section.
To edit user-defined sections within the linker script, see the following document. It is available for download from the Microchip Technology website, www.microchip.com.
MPLAB® XC-DSC Assembler, Linker and Utilities User’s Guide (DS-50003590), Section 10.3 “Contents of a Linker Script.”