Jump to main content
MPLAB XC8 C Compiler User’s Guide for PIC MCU
Search
Home
4
Command-line Driver
4.6
Option Descriptions
4.6.3
Options for Controlling the C Dialect
4.6.3.1
Ansi Option
Notice to Development Tools Customers
1
Preface
2
Compiler Overview
3
How Tos
4
Command-line Driver
4.1
Invoking The Compiler
4.2
The Compilation Sequence
4.3
Runtime Files
4.4
Compiler Output
4.5
Compiler Messages
4.6
Option Descriptions
4.6.1
Options Specific to PIC Devices
4.6.2
Options for Controlling the Kind of Output
4.6.3
Options for Controlling the C Dialect
4.6.3.1
Ansi Option
4.6.3.2
Ext Option
4.6.3.3
Std Option
4.6.4
Options for Controlling Warnings and Errors
4.6.5
Options for Debugging
4.6.6
Options for Controlling Optimization
4.6.7
Options for Controlling the Preprocessor
4.6.8
Options for Parsing
4.6.9
Options for Assembling
4.6.10
Mapped Assembler Options
4.6.11
Options for Linking
4.6.12
Mapped Linker Options
4.6.13
Options for Directory Search
4.7
MPLAB X IDE Integration
5
C Language Features
6
Macro Assembler
7
Linker
8
Utilities
9
Library Functions
10
Error and Warning Messages
11
Implementation-Defined Behavior
12
Document Revision History
Microchip Information
4.6.3.1 Ansi Option
The
-ansi
option is equivalent to
-std=c90
, and controls the C standard used.