20.3.3 Compiler Output Type Macros

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

Table 20-3. Macros Defined with -ansi
Symbol-Leading Double Underline Symbol-Leading & Lagging Double Underline Description
__XC_DSC __XC_DSC__ If defined, XC-DSC compiler is in use.
__C30 __C30__
__dsPICC30 __dsPICC30__
__XC_DSCELF __XC_DSCELF__ If defined, compiler is producing ELF output.
__C30ELF __C30ELF__
__dsPIC30ELF __dsPIC30ELF__

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

Table 20-4. Macros Defined without -ansi
Symbol Description
XC_DSC XC-DSC compiler is in use.
C30
dsPIC30