Jump to main content
MPLAB® XC8 C Compiler User’s Guide for AVR® MCU
Search
Notice to Development Tools Customers
1
Preface
1.1
Conventions Used in This Guide
1.2
Recommended Reading
2
Compiler Overview
2.1
Device Description
2.2
C Standards
2.3
Hosts and Licenses
2.4
Conventions
2.5
Compatible Development Tools
3
Command-line Driver
3.1
Invoking The Compiler
3.2
The Compilation Sequence
3.3
Runtime Files
3.4
Compiler Output
3.5
Compiler Messages
3.6
Option Descriptions
3.7
MPLAB X IDE Integration
3.8
Microchip Studio Integration
4
C Language Features
4.1
C Standard Compliance
4.2
Device-Related Features
4.3
Supported Data Types and Variables
4.4
Memory Allocation and Access
4.5
Operators and Statements
4.6
Register Usage
4.7
Functions
4.8
Interrupts
4.9
Main, Runtime Startup and Reset
4.10
Libraries
4.11
Mixing C and Assembly Code
4.12
Optimizations
4.13
Preprocessing
4.14
Linking Programs
5
Utilities
5.1
Archiver/Librarian
5.2
Objdump Utility
6
Implementation-Defined Behavior
6.1
Overview
6.2
Translation
6.3
Environment
6.4
Identifiers
6.5
Characters
6.6
Integers
6.7
Floating-Point
6.8
Arrays and Pointers
6.9
Hints
6.10
Structures, Unions, Enumerations, and Bit-Fields
6.11
Qualifiers
6.12
Pre-Processing Directives
6.13
Library Functions
6.14
Architecture
7
Common C Interface
7.1
Background - The Desire for Portable Code
7.2
Using the CCI
7.3
C Language Standard Refinement
7.4
C Language Standard Extensions
7.5
Compiler Features
8
Library Functions
8.1
Library Example Code
8.2
<boot.h> Bootloader Functions
8.3
<cpufunc.h> CPU Related Functions
8.4
<delay.h> Delay Functions
8.5
<pgmspace.h>
8.6
<sfr_defs.h>
8.7
<sleep.h>
8.8
<xc.h>
8.9
Built-in Functions
9
Document Revision History
Microchip Information
Trademarks
Legal Notice
Microchip Devices Code Protection Feature