4.6.1.5 Cpu Option

The -mcpu=device option must be used to specify the target device when building. This is the only option that is mandatory.

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 (4.6.2.8 Print-devices).