4.6 Option Descriptions

Most aspects of the compilation process can be controlled using options passed to the command-line driver, xc8-cc.

Many options follow a GCC style; however, the compiler is not based on GCC and you cannot use any other GCC options that are not documented here. Many of the old-style xc8 driver options (described in the MPLAB® XC8 C Compiler User’s Guide DS50002053) can be used with xc8-cc if there is no GCC-style option equivalent available; however, their use may trigger a warning.

All options are case sensitive and are identified by single or double leading dash character, e.g. -c or --version.

Use the --help option to obtain a brief description of accepted options on the command line.

If you are compiling from within a development environment, it will issue explicit options to the compiler that are based on the selections in the project's properties. The default project options might be different to the default options used by the compiler when running on the command line, so you should review these to ensue that they are acceptable.