4.6.1.5 Cpu Option

The -mcpu=device option is mandatory and must be used to specify the target device when building. For example -mcpu=18f6722 will select the PIC18F6722 device. To see a list of supported devices that can be used with this option, use the -mprint-devices option (Print-devices).

This option selects only the target device; it does not indicate what version of the device support files to use. Additionally, use the -mdfp option (see Dfp Option) for this purpose.