3.6.1 Options Specific to AVR Devices

The options listed below are useful when compiling 8-bit Microchip AVR devices with the MPLAB XC8 compiler and are discussed in following sections.

Table 3-4. AVR Device-Specific Options
Option

(links to explanatory section)

Controls
-m[no-]accumulate-argsHow arguments are passed between functions.
-m[no-]call-prologuesHow functions save and restore registers.
-m[no-]const-data-in-config-mapped-progmemWhether the compiler will place const-qualified data into a 32k flash section that is then mapped into data memory.
-m[no-]const-data-in-progmemWhether const-qualified objects are placed in program or data memory.
-mcpu=deviceThe target device or architecture to compile.
-m[no-]divaWhether the DIVA module is utilized for some integer operations.
-mdfp=pathThe source of device-specific information.
-mfuse-actionAdjust code memory size, based on configuration fuses values.
-mno-interruptsHow the stack pointer is changed.
-f[no-]jump-tablesWhether jump tables are used in switch() statements.
-m[no-]relaxOptimization of call/jump instructions.
-mreserve=space@start:endThe address ranges in the memory space to be reserved.
-mshort-callsHow function calls are encoded.
-msmart-io=levelThe feature set of the IO library linked in.
-msmart-io-format="format"Manual inclusion of IO library features.
-m[no-]strict-XThe use of the X register.
-m[no-]tiny-stackThe width of the stack pointer.