21.3.3 Compiler Output Type Macros

The following symbols are defined with the -ansi command line option.

Table 21-3. Macros Defined with -ansi
Symbol-Leading Double UnderlineSymbol-Leading & Lagging Double UnderlineDescription
__XC16__XC16__If defined, 16-bit compiler is in use.
__C30__C30__
__dsPICC30__dsPICC30__
__XC16ELF__XC16ELF__If defined, compiler is producing ELF output.
__C30ELF__C30ELF__
__dsPIC30ELF__dsPIC30ELF__
__XC16COFF__XC16COFF__If defined, compiler is producing COFF output.
__C30COFF__C30COFF__
__dsPIC30COFF__dsPIC30COFF__

The following symbols are defined when -ansi is not selected.

Table 21-4. Macros Defined without -ansi
SymbolDescription
XC1616-bit compiler is in use.
C30
dsPIC30