6.6.1 XC16 (Global Options)

Set up global options for all 16-bit language tools. See also “Options Page Features”.

Table 6-1. All Options Category
OptionDescriptionCommand Line
Output file formatSelect either ELF/DWARF or COFF.-omf=elf

-omf=cof

Define common macrosAdd macros common to compiler, assembler and linker.-Dmacro
Generic buildBuild for a generic core device (no peripherals).
Use legacy libcCheck to use libraries in the format before v3.25.

Uncheck to use the new (HI-TECH) libraries format.

-legacy-libc
Fast floating point mathCheck to use faster single and double floating point libraries, which consume more RAM.

Uncheck to use original libraries which are slower but create smaller code.

-fast-math
Relaxed floating point mathCheck to use relaxed-compliance math library. This is a math library that follows slightly different rules than those the IEEE standard dictates for infinities, NaNs, and denormal (tiny) numbers.

Uncheck to use standard floating point math library.

-relaxed-math
Don’t delete intermediate filesCheck to not delete intermediate files. Place them in the object directory and name them based on the source file.

Uncheck to remove intermediate files after a build.

-save-temps=obj
Common include dirsDirectory paths entered here will be appended to the already existing include paths of the compiler.

Relative paths are from the MPLAB X IDE project directory.

-Idir