Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
MPLAB
®
XC16 C Compiler Users Guide
DS50002071C-page 4 2012-2013 Microchip Technology Inc.
2.5 ANSI Standard Extensions ........................................................................... 31
2.5.1 Generic Header File ...................................................................................31
2.5.2 Absolute addressing ..................................................................................31
2.5.3 Far Objects and Functions .........................................................................32
2.5.4 Near Objects ..............................................................................................33
2.5.5 Persistent Objects ......................................................................................34
2.5.6 X and Y Data Objects ................................................................................35
2.5.7 Banked Data Objects .................................................................................35
2.5.8 Alignment of Objects ..................................................................................36
2.5.9 EEPROM Objects ......................................................................................37
2.5.10 Interrupt Functions ...................................................................................37
2.5.11 Packing Objects .......................................................................................40
2.5.12 Indicating Antiquated Objects ..................................................................41
2.5.13 Assigning Objects to Sections .................................................................41
2.5.14 Specifying Configuration Bits ...................................................................43
2.5.15 Manifest Macros .......................................................................................44
2.5.16 In-line Assembly .......................................................................................45
2.6 Compiler Features ........................................................................................ 46
2.6.1 Enabling the CCI ........................................................................................46
Chapter 3. XC16 Toolchain and MPLAB X IDE
3.1 Introduction ................................................................................................... 47
3.2 MPLAB X IDE and Tools Installation ............................................................ 47
3.3 MPLAB X IDE Setup .................................................................................... 48
3.4 MPLAB X IDE Projects ................................................................................. 49
3.5 Project Setup ................................................................................................ 51
3.5.1 XC16 (Global Options) ...............................................................................51
3.5.2 xc16-as (16-Bit Assembler) ........................................................................51
3.5.3 xc16-gcc (16-Bit C Compiler) .....................................................................53
3.5.4 xc16-ld (16-Bit Linker) ................................................................................55
3.5.5 Options Page Features ..............................................................................58
3.5.6 Additional Search Paths and Directories ...................................................58
3.6 Project Example ........................................................................................... 59
3.6.1 Run the Project Wizard ..............................................................................59
3.6.2 Add Files to the Project .............................................................................59
3.6.3 Set Build Options .......................................................................................60
3.6.4 Build the Project .........................................................................................60
3.6.5 Output Files ................................................................................................60
3.6.6 Further Development .................................................................................61
Chapter 4. XC16 Toolchain and MPLAB IDE v8
4.1 Introduction ................................................................................................... 63
4.2 MPLAB IDE v8 and Tools Installation .......................................................... 63
4.3 MPLAB IDE Setup ........................................................................................ 64
4.4 MPLAB IDE Projects .................................................................................... 64
4.5 Project Setup ................................................................................................ 65
4.5.1 Build Options Dialog, XC16 ASM Tab .......................................................65
4.5.2 Build Options Dialog, XC16 C Tab (If Installed) .........................................66
4.5.3 Build Options Dialog, XC16 LINK Tab .......................................................67
4.5.4 Build Options Dialog, XC16 ASM/C Suite Tab ...........................................69
Protego_Release_01_05-Related-OEM-Documentation-MPLAB-XC16-C-Compiler.pdf