Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

MPLAB
®
XC16 C Compiler Users Guide
DS50002071C-page 106 2012-2013 Microchip Technology Inc.
5.8 MPLAB X IDE TOOLCHAIN OR MPLAB IDE TOOLSUITE EQUIVALENTS
For information on related compiler options in MPLAB X IDE or MPLAB IDE v8, see
either:
Chapter 3. XC16 Toolchain and MPLAB X IDE
Chapter 4. XC16 Toolchain and MPLAB IDE v8
-fpack-struct Pack all structure members together without holes. Usually you
would not want to use this option, since it makes the code
sub-optimal, and the offsets of structure members wont agree with
system libraries.
The dsPIC
®
DSC device requires that words be aligned on even
byte boundaries, so care must be taken when using the packed
attribute to avoid run time addressing errors.
-fpcc-struct-
return
Return short struct and union values in memory like longer
ones, rather than in registers. This convention is less efficient, but
it has the advantage of allowing capability between the 16-bit com-
piler compiled files and files compiled with other compilers.
Short structures and unions are those whose size and alignment
match that of an integer type.
-fno-short-double By default, the compiler uses a double type equivalent to float.
This option makes double equivalent to long double. Mixing
this option across modules can have unexpected results if
modules share double data either directly through argument
passage or indirectly through shared buffer space. Libraries
provided with the product function with either switch setting.
-fshort-enums Allocate to an enum type only as many bytes as it needs for the
declared range of possible values. Specifically, the enum type will
be equivalent to the smallest integer type which has enough room.
-fverbose-asm
-fno-verbose-asm
Put extra commentary information in the generated assembly code
to make it more readable.
-fno-verbose-asm, the default, causes the extra information to
be omitted and is useful when comparing two assembler files.
TABLE 5-18: CODE GENERATION CONVENTION OPTIONS (CONTINUED)
Option Definition

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh