3.5.3 -p, --processor=PROC

Specify the target processor, e.g.:

xc-dsc-as -p33EP32MC504 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 p33EP32MC504.inc contains the following:

.ifndef __33EP32MC504 
 .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 __dsPIC33E
 .print “dsPIC33E family selected”
.endif

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