6 Compiler Command-Line Driver

The compiler command-line driver (xc-dsc-gcc or xc-dsc-g++) is the application that invokes the operation of the MPLAB® XC-DSC C/C++ Compiler for dsPIC33C/E/F and dsPIC30 DSC. The driver compiles, assembles and links C or C++ code, assembly language modules and library archives. Most of the compiler command-line options are common to all implementations of the GCC or G++ toolset. A few are specific to the compiler and will be discussed below.

The compiler driver also may be used with MPLAB® X IDE ( xc-dsc-gcc) or MPLAB® for VS Code® (xc-dsc-gcc or xc-dsc-g++). Compiler options are selected in the GUI (or JSON file for VS Code) and passed to the compiler driver for execution.