3.2.2 How Do I Compile on the Command-Line?
The compiler driver is called xc32-gcc
for all 32-bit devices; for
example, in Windows, it is named xc32-gcc.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 spread among multiple source files.
The driver is introduced in 5.1 Invoking The Compiler. See 3.2.4 How Can I Select Which Compiler I Want to Build With? 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 5.7 Driver Option Descriptions. The files that can be passed to the driver are listed and described in 5.1.3 Input File Types.