5.7.1 Options Specific to PIC32M Devices

The options shown in the table below are useful when compiling for Microchip PIC32M devices with the MPLAB XC32 compiler and are discussed in the sections that follow.

Table 5-4. PIC32M Device-Specific Options
OptionDefinition
-G numSpecify the size threshold for placing permanent storage duration objects into the small data sections.
-mappio-debugEnable the APPIN/APPOUT debugging library functions for the Microchip debugger and in-circuit emulator.
-mcciEnable the Microchip Common C Interface compilation mode.
-m[no-]check-zero-divisionSpecifies whether to trap on integer division by zero.
-mcodecov=optionsInstrument the output to provide code coverage information.
-mdfp=pathSpecifies which device family pack to use.
-dspr2Specifies use of revision 2 of the MIPS DSP ASE.
-m[no-]embedded-dataSpecifies where objects are allocated.
-mframe-header-optAllows the compiler to omit a few instructions for functions not using their incoming frame header.
-mgen-pie-staticGenerate position-independent code suitable for statically linking into a position-independent executable.
-m[no-]interlink-compressedGenerate code that is link compatible with MIPS16 and microMIPS code.
-m[no-]jalsEnable generation of microMIPS jals instructions, which have a shorter, 16-bit delay slot.
-m[no-]long-callsDisable use of the jal instruction.
-m[no-]memcpy Force the use of the memcpy()function for non-trivial block moves.
-m[no-]micromipsGenerate microMIPS code.
-[mno-]mips16Generate MIPS16 code.
-mno-floatDo not use libraries with software floating-point.
-mno-hi-addr-optDisables certain optimizations associated with the access of special function registers.
-mperipheral-libsSpecifies which peripheral libraries are linked to the project.
-mprocessorSelects the target device for which to compile.
-mreserveSpecifies the address ranges of memory to be reserved.
-msmart-io=[0|1|2]Controls the feature set of the IO library linked in.
-mchp-stack-usageGeneration of stack usage information and warnings.
-mtext="scn-name"Redirects the .text section into a section with a user-defined name.
-m[no-]uninit-const-in-rodataPlace uninitialized const-qualified objects in the read-only data section.
--nofallbackOnly the selected optimization level and with no license-imposed fall back to a lesser level.