C18
The MPLAB® C Compiler for PIC18 MCUs (C18 toolchain) is an end-of-life product. Please use the MPLAB XC8 C Compiler (XC8 toolchain) for new designs.
The required macros for this toolchain are:
- MP_PROCESSOR_OPTION
- MP_CPP
- MP_PROCESSOR_OPTION_LD
- MP_LINKER_DEBUG_OPTION
A different processor option for the linker (MP_PROCESSOR_OPTION_LD) is included, since the linker takes different strings than the mcc18 compiler. The linker likes all small caps.
See MPASM for an explanation of MP_LINKER_DEBUG_OPTION usage.
The optional macros for this toolchain are:
- MP_EXTRA_AS_PRE
- MP_EXTRA_LD_PRE (for stand alone project)
- MP_EXTRA_AR_PRE (for library project)
- MP_EXTRA_CC_PRE