3.6.1 Options Specific to AVR Devices
The options tabulated below are useful when compiling for 8-bit Microchip AVR devices with the MPLAB XC8 compiler and are discussed in the sections that follow.
Option (links to explanatory section) |
Controls |
---|---|
-m[no-]accumulate-args |
How arguments are passed between functions. |
-m[no-]call-prologues |
How functions save and restore registers. |
-m[no-]const-data-in-config-mapped-progmem |
Whether the compiler will place
const -qualified data into a 32k flash section that will then
be mapped into data memory. |
-m[no-]const-data-in-progmem |
Whether const -qualified
objects are placed in program or data memory. |
-mcpu=device |
The target device or architecture for which to compile. |
-mdfp=path |
The source of device-specific information. |
-mfuse-action |
Adjust code memory size, based on configuration fuses values. |
-mno-interrupts |
How the stack pointer is changed. |
-f[no-]jump-tables |
Whether jump tables are used in
switch() statements. |
-m[no-]relax |
Optimization of call/jump instructions. |
-mreserve=space@start:end |
The address ranges in the memory space to be reserved. |
-mshort-calls |
How function calls are encoded. |
-msmart-io=level |
The feature set of the IO library linked in. |
-msmart-io-format="format" |
Manual inclusion of IO library features. |
-m[no-]strict-X |
The use of the X register. |
-m[no-]tiny-stack |
The width of the stack pointer. |