# Vault 7: Projects

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

### Protego

# MPLAB XC16 C-Compiler

- 1
- 2
…
- 63
- 64
- 65
- 66
- 67
…
- 365
- 366

XC16 Toolchain and MPLAB IDE v8
 2012-2013 Microchip Technology Inc. DS50002071C-page 65
4.5 PROJECT SETUP
To set up an MPLAB IDE project for the first time, it is advisable to use the built-in Proj-
ect Wizard (Project>Project Wizard
.) In this wizard, you will be able to select a lan-
guage toolsuite that uses the 16-bit assembler. For more on the wizard, and MPLAB
IDE projects, see MPLAB IDE documentation.
Once you have a project set up, you may then set up properties of the tools in MPLAB
IDE.
1. From the MPLAB IDE menu bar, select Project>Build Options>Project
to open a
dialog to set/check project build options.
2. Click on the tool tab to modify tool settings.
- Build Options Dialog, XC16 ASM Tab
- Build Options Dialog, XC16 C Tab (If Installed)
- Build Options Dialog, XC16 LINK Tab
- Build Options Dialog, XC16 ASM/C Suite Tab
4.5.1 Build Options Dialog, XC16 ASM Tab
A subset of command-line options may be specified in MPLAB IDE in the Build Options
dialog, XC16 ASM tab. Select a category, and then set up assembler options. For addi-
tional options, see MPLAB XC16 Assembler documentation.
General Category
Symbols and Macros Category
Generate Command Line
Diagnostics level Select to display all warnings; suppress the display of all warnings;
or display only fatal warnings. These will be shown in the Output
window.
Allow CALL optimization Turn relaxation on. Equivalent to --relax option.
Keep local symbols Keep local symbols, i.e., labels beginning with .L (upper case
only). Equivalent to --keep-locals (-L) option.
Generate debugging
information
Create a COFF or ELF file with information to allow debugging of
code in MPLAB IDE. Equivalent to -g option.
Note: COFF supports debugging in the .text section only.
Listing Options If Enable Listing is checked, you may select different listing
options. Equivalent to -a[suboption] [=file] options.
- Include source code (-ah)
- Expand macros (-am)
- Include false conditionals (-ac)
- Omit forms processing (-an)
- Include assembly (-al)
- List symbols (-as)
- Omit debugging directives (-ad)
- Section information (-ai)
Restore Defaults Restore tab default settings.
Use Alternate Settings
Text Box Enter options in a command-line (non-GUI) format.
Generate Command Line
Assembler Symbols Add/remove assembler symbols.
Preprocessor Macros Add/remove preprocessor macros.
Restore Defaults Restore tab default settings.
Use Alternate Settings
Text Box Enter options in a command-line (non-GUI) format.

- 1
- 2
…
- 63
- 64
- 65
- 66
- 67
…
- 365
- 366