4 Command-line Driver
The MPLAB XC8 C Compiler command-line
driver,
, can be invoked to perform all aspects
of compilation, including C code generation, assembly and link steps. Its use is the
recommended way to invoke the compiler, as it hides the complexity of all the internal
applications and provides a consistent interface for all compilation steps. Even if an IDE
is used to assist with compilation, the IDE will ultimately call xc8-cc
xc8-cc
.
If you are building a
legacy project or would prefer to use the old command-line driver and its command-line
options, you may instead run the xc8
driver application. It’s use is
described in its own user’s guide, MPLAB® XC8 C Compiler
User’s Guide, which also covers the C90 aspect of compilation.
This chapter describes the steps that the driver takes during compilation, the files that the driver can accept and produce, as well as the command-line options that control the compiler’s operation.