XC16 (also C30, C24, dsPIC)
The XC16 toolchain is the upgrade for the C30 toolchain. The C24 and dsPIC toolchains are subsets of the C30.
These compilers are represented by different toolchains. All of them take the same options.
The required macros for these toolchains are:
- MP_PROCESSOR_OPTION
- MP_LINKER_FILE_OPTION
MP_LINKER_FILE_OPTION can be one of the two strings:
- ",—script=myScript24FJ256GB106.gld" – Use this string if the project contains a linker script, in this case named myScript24FJ256GB106.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 these toolchains 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)