24.1 Compiling in Compatibility Mode
An option is used to enable vendor-specific syntax compatibility. When
using MPLAB XC8, this option is --ext=vendor;
when using MPLAB XC16
or MPLAB XC32, the option is -mext=vendor
. The argument
vendor is a key that is used to represent the syntax. See the table below for a
list of all keys usable with the MPLAB XC compilers.
Vendor key | Syntax | XC8 Support | XC16 Support | XC32 Support |
---|---|---|---|---|
cci | Common C Interface | Yes | Yes | Yes |
iar | IAR C/C++ CompilerTM for ARM | Yes | Yes | Yes |
The Common C Interface is a language standard that is common to all Microchip MPLAB XC compilers. The non-standard extensions associated with this syntax are already described in Common C Interface and are not repeated here.