# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# MPLAB XC16 C-Compiler

- 1
- 2
…
- 61
- 62
- 63
- 64
- 65
…
- 365
- 366

MPLAB
®
XC16 C COMPILER
USERS GUIDE
 2012-2013 Microchip Technology Inc. DS50002071C-page 63
Chapter 4. XC16 Toolchain and MPLAB IDE v8
4.1 INTRODUCTION
The 16-bit language tools may be used together under MPLAB IDE v8 and above to
provide GUI development of application code for the dsPIC
®
DSC and PIC24 MCU
families of devices. The tools are:
 MPLAB XC16 C Compiler
 MPLAB XC16 Assembler
 MPLAB XC16 Object Linker
 MPLAB XC16 Object Archiver/Librarian and other 16-bit utilities
Topics covered in this chapter:
 MPLAB IDE v8 and Tools Installation
 MPLAB IDE Setup
 MPLAB IDE Projects
 Project Setup
 Project Example
4.2 MPLAB IDE V8 AND TOOLS INSTALLATION
In order to use the 16-bit language tools with MPLAB IDE, you must install:
 MPLAB IDE, which is available for free on the Microchip website.
 MPLAB XC16 C Compiler, which includes all of the 16-bit language tools. The
compiler is available for free (Free and Evaluation editions) or for purchase
(Standard or Pro editions) on the Microchip website.
The 16-bit language tools will be installed, by default, in the directory:
 C:\Program Files\Microchip\xc16\x.xx
where x.xx is the version number.
The executables for each tool will be in the bin subdirectory:
 C Compiler - xc16-gcc.exe
 Assembler - xc16-as.exe
 Object Linker - xc16-ld.exe
 Object Archiver/Librarian - xc16-ar.exe
 Other Utilities - xc16-utility.exe
All device include (header) files are in support/family/h subdirectories, where
family is the device family for your selected device (e.g., dsPIC30F is the device
family for the dsPIC30F6015 device.) For more on these files, see
Section 6.3 Device Header Files.
All device linker script files are in support/family/gld subdirectories, where fam-
ily is the device family for your selected device (e.g., dsPIC30F is the device family
for the dsPIC30F6015 device.) For more on these files, see the linker documentation
Code examples and template files are in the support/templates/assembly sub-
directory.

- 1
- 2
…
- 61
- 62
- 63
- 64
- 65
…
- 365
- 366