6.2.1 The Compiler Applications

The MPLAB® XC-DSC compiles C source files, producing assembly language files. These compiler-generated files are assembled and linked with other object files and libraries to produce the final application program in executable ELF file format. The ELF file can be loaded into the MPLAB® X IDE, where it can be tested and debugged, or the conversion utility can be used to convert the ELF file to Intel® hex format, suitable for loading into the command-line simulator or a device programmer. A software development tools data flow diagram is shown in the 5.3 MPLAB X IDE Projects section.

The driver program will call the required internal compiler applications. These applications are shown as the smaller boxes inside the large driver box. The temporary file produced by each application can also be seen in this diagram.

The following table lists the compiler applications. The names shown are the names of the executables, which can be found in the bin directory under the compiler’s installation directory. Your PATH environment variable should include this directory.

Table 6-2. Compiler Application Names
Name Description
xc-dsc-gcc Command line driver; the interface to the compiler
xc-dsc-as Assembler (based on the target device)
xc-dsc-ld Linker
xc-dsc-bin2hex Conversion utility to create hex files
xc-dsc-strings String extractor utility
xc-dsc-strip Symbol stripper utility
xc-dsc-nm Symbol list utility
xc-dsc-ar Archiver/Librarian
xc-dsc-objdump Object file display utility
xc-dsc-ranlib Archive indexer utility