Microchip Technology SW006023-2 Data Sheet

Page of 238
Preprocessing
 2012 Microchip Technology Inc.
DS51686E-page 173
__processor__
Where “processor” is the capitalized argument 
to the 
-mprocessor
 option. e.g., 
-mprocessor=32mx12f3456
 will define 
__32MX12F3456__
__XC
Always defined to indicate this is a Microchip 
XC compiler
__XC32
Always defined to indicate this the XC32 
compiler
__VERSION__
The 
__VERSION__
 macro expands to a 
string constant describing the compiler in use. 
Do not rely on its contents having any 
particular form, but it should contain at least 
the release number. Use the
 
__XC32_VERSION
 macro for a numeric 
version number
__XC32_VERSION
  or 
 
__C32_VERSION__
The C compiler defines the constant 
__XC32_VERSION
, giving a numeric value 
to the version identifier. This macro can be 
used to construct applications that take 
advantage of new compiler features while still 
remaining backward compatible with older 
versions. The value is based upon the major 
and minor version numbers of the current 
release. For example, release version 1.03 
will have a 
__XC32_VERSION
 definition of 
1030. This macro can be used, in conjunction 
with standard preprocessor comparison 
statements, to conditionally include/exclude 
various code constructs