4.6.2.7 Help

The --help option displays information on the xc8-cc compiler options, then the driver will terminate.

The displayed help might differ for different device families, which can be indicated using the -mcpu option.

For example:
xc8-cc -mcpu=18f4520 --help             
Usage: xc8-cc [options] file...
Options:
  -c                        Compile/assemble to intermediate/object file
  -C                        Tell the preprocessor not to discard comments
  -S                        Compile to assembly file
  -v                        Verbose
  -E                        Preprocess only
  -o                        Specify output file
  -D                        Define preprocessor symbol
  -U                        Undefine preprocessor symbol
  -I                        Specify include path
  -l                        Specify library
  -L                        Specify library search path
  -H                        List included header files
  -dM                       List all defined macros
  -Wl                       Pass comma-separated options directly to the linker
  -Xlinker                  Pass option directly to the linker
...