SW006015 Microchip Technology, SW006015 Datasheet - Page 18

C COMPILER MPLAB C32

SW006015

Manufacturer Part Number
SW006015
Description
C COMPILER MPLAB C32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheets

Specifications of SW006015

Supported Families
PIC32MX5, MX6, And MX7
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC32 MCUs
Tool Function
Compiler
Supported Devices
PIC32 MCUs
Tool Type
Compiler
Processor Series
PIC32
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
C32 C Compiler User’s Guide
®
Note that the aligned attribute is used to increase the alignment of a variable, not
reduce it. To decrease the alignment value of a variable, use the packed attribute.
cleanup (function)
Indicate a function to call when the attributed automatic function scope variable goes
out of scope.
The indicated function should take a single parameter, a pointer to a type compatible
with the attributed variable, and have void return type.
deprecated
When a variable specified as deprecated is used, a warning is generated.
packed
The attributed variable or structure member will have the smallest possible alignment.
That is, no alignment padding storage will be allocated for the declaration. Used in
combination with the aligned attribute, packed can be used to set an arbitrary
alignment restriction, greater or lesser than the default alignment for the type of the
variable or structure member.
section (“name”)
Place the function into the named section.
For example,
unsigned int dan __attribute__ ((section (“.quixote”)))
Variable dan will be placed in section .quixote.
The -fdata-sections command line option has no effect on variables defined with
a section attribute unless unique_section is also specified.
unique_section
Place the variable in a uniquely named section, just as if -fdata-sections had been
specified. If the variable also has a section attribute, use that section name as the
prefix for generating the unique section name.
For example,
int tin __attribute__ ((section (“.ofcatfood”), unique_section)
Variable tin will be placed in section .ofcatfood.
transparent_union
When a function parameter of union type has the transparent_union attribute
attached, corresponding arguments are passed as if the type were the type of the first
member of the union.
unused
Indicate to the compiler that the variable may not be used. The compiler will not issue
a warning for this variable if it is not used.
weak
A weak symbol indicates that if another version of the same symbol is available, that
version should be used instead.
1.7.3
Pragmas
#pragma interrupt
Mark a function as an interrupt handler. The prologue and epilogue code for the
function will perform more extensive context preservation. See Chapter
3. “Interrupts” and Section 3.5 “Exception Handlers”.
#pragma vector
© 2007 Microchip Technology Inc.
DS51686A-page 14

Related parts for SW006015