18.3.7.2 MPLAB XC16 Toolchain
The required macros for the MPLAB XC16 toolchain are:
- MP_PROCESSOR_OPTION - device name used by the compiler
- MP_LINKER_FILE_OPTION which can be one of two strings:
",—script=myScript24FJ256GB106.gld"
– Use this string if the project contains a linker script, in this case namedmyScript24FJ256GB106.gld
.",-Tp24FJ256GB106.gld"
– Use this string if the project does not contain a linker script. Use the name of the default linker script in the installation; in this case,p24FJ256GB106.gld
. In Linux, the name of the.gld
file is case sensitive.
The optional macros for the MPLAB XC16 toolchain are:
- MP_EXTRA_CC_PRE
- MP_EXTRA_AS_PRE
- MP_EXTRA_AS_POST
- MP_EXTRA_AR_PRE (for lib projects)
- MP_EXTRA_AR_POST (for lib projects)
- MP_EXTRA_LD_PRE (for stand alone projects)
- MP_EXTRA_LD_POST (for stand alone projects)