How Do I Compile On The Command-line?

The compiler driver is called xc8-cc for all 8-bit devices; e.g., in Windows, it is named xc8-cc.exe. This application should be invoked for all aspects of compilation. It is located in the bin directory of the compiler distribution. Avoid running the individual compiler applications (such as the assembler or linker) explicitly. You can compile and link in the one command, even if your project is made up of multiple source files.

The driver command format is introduced in Invoking The Compiler. See the How Can I Select Which Compiler I Want to Build With? section to ensure you are running the correct driver if you have more than one installed. The command-line options to the driver are detailed in Option Descriptions. The files that can be passed to the driver are listed and described in Input File Types.