18.3.7.4 MPLAB XC32 Toolchain

The required macros for the MPLAB XC32 toolchain are:

  • MP_PROCESSOR_OPTION - device name used by the compiler
  • MP_LINKER_FILE_OPTION which can be one of two strings:
    1. ",—script=myScript32X.gld" – use this string if the project contains a linker script, in this case named myScript32X.gld.
    2. "" – use the empty string if the project does not contain a linker script.

The optional macros for the MPLAB XC32 toolchain are:

  • MP_EXTRA_CC_PRE
  • MP_EXTRA_AS_PRE
  • MP_EXTRA_AS_POST
  • MP_EXTRA_AR_PRE (for lib project)
  • MP_EXTRA_AR_POST (for lib project)
  • MP_EXTRA_LD_PRE (for stand alone project)
  • MP_EXTRA_LD_POST (for stand alone project)