3.5.3 -p, --processor=PROC

Specify the target processor, e.g.:

xc32-as -p32AK1216GC41064 file.s

The assembler defines macros based on the target processor setting, which can be tested by conditional directives in source code. For example, include file p32AK1216GC41064.inc contains the following:

.ifndef __32AK1216GC41064 
 .error “Include file does not match processor setting”
.endif

In addition to the target processor, a macro to identify the device family is also defined. For example:

.ifdef __PIC32A
 .print “PIC32A family selected”
.endif

Macros for the device families (see Predefined Symbols) are defined based on target processor setting.