5.7.4.4 xc-dsc-gcc - Preprocessing and Messages Category
| Option | Description | Command Line |
|---|---|---|
| C include dirs | Add the directory dir to the head of the list of
directories to be searched for header files.For more information, see 5.7.8 Additional Search Paths and Directories. | -I"dir" |
| Define C macros | Define macro macro
with the string 1 as its definition. | -Dmacro |
| ANSI-std C support | Check to support all (and only) ANSI C
programs. Uncheck to support ANSI and non-ANSI programs. | -ansi |
| Use CCI syntax | Check if your code is written per the
Common C Interface (CCI) syntax (see 25 Common C Interface). Uncheck if you are not. | -mcci |
| Use IAR syntax | Check if your code is written per the
Embedded Compiler Compatibility Mode syntax for IAR (see 24 Embedded Compiler Compatibility Mode). Uncheck if you are not. | -mext=IAR |
| Errata | This option enables specific errata
work-arounds identified by ID. Valid values for ID change from time to
time and may not be required for a particular variant. The ID
| -merrata=id |
| Smart IO forwarding level | This option attempts to statically
analyze format strings passed to printf, scanf and the ‘f’ and ‘v’
variations of these functions. Uses of nonfloating point format
arguments will be converted to use an integer-only variation of the
library functions. Equivalent to -msmart-io=n option
where n equals:
| -msmart-io=n |
| Smart IO format strings | Specifies what the format arguments are when the compiler is unable to determine them. | |
| Make warnings into errors | Check to halt compilation based on warnings as well as
errors. Uncheck to halt compilation based on errors only. | -Werror |
| Additional warnings | Check to enable all warnings. Uncheck to disable warnings. | -Wall |
| Enable cast align | Warn whenever a pointer is cast such that the required alignment of the target is increased. For example, warn if a char * is cast to an int * on machines where integers can only be accessed at two- or four-byte boundaries. | -Wcast-align |
| Strict ANSI warnings |
Check to issue all warnings demanded by strict ANSI C. Uncheck to issue all warnings. | -pedantic |
| Disable ISR warn | Disable warning for inappropriate use of ISR function
names. By default the compiler will produce a warning if the
interrupt is not attached to a recognized interrupt
vector name. This option will disable that feature. | -mno-isr-warn |
| Enable SFR warnings | Enable warnings related to SFRs. | -msfr-warn=on|off |
| Enable macro expansion in pragma config value | This option will enable the support for macro expansion
in #pragma config value. For
example:After preprocessing the file the
#pragma config will
become: | -mexpand-pragma-config |
