7.2.1 The Compiler Applications
The MPLAB XC16 C Compiler 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 or COFF file format. The ELF or COFF 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 or COFF 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 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.
Name | Description |
---|---|
xc16-gcc | Command line driver; the interface to the compiler |
xc16-as | Assembler (based on the target device) |
xc16-ld | Linker |
xc16-bin2hex | Conversion utility to create HEX files |
xc16-strings | String extractor utility |
xc16-strip | Symbol stripper utility |
xc16-nm | Symbol list utility |
xc16-ar | Archiver/Librarian |
xc16-objdump | Object file display utility |
xc16-ranlib | Archive indexer utility |