3.6 Option Descriptions

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

The GCC compiler on which the MPLAB XC8 C Compiler is based provides many options in addition to those discussed in this document. It is recommended that you avoid any option that has not been documented here, especially those that control the generation or optimization of code.

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.