3.5.3 -p, --processor=PROC

Specify the target processor, e.g.:

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

.ifndef __30F2010 
 .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 __dsPIC30F
 .print “dsPIC30F family selected”
.endif

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