SW500011 Microchip Technology, SW500011 Datasheet - Page 79

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
C Language Features
3.3.11.2 Function Pointers
Function pointers can be defined to indirectly call functions or routines in the program space. The
size of these pointers are 32 bits wide. The addresses for all code labels are shown in the map file as
an untruncated 4-byte address.
3.4 Storage Class and Object Placement
Objects are positioned in different memory areas dependant on their storage class and declaration.
This is discussed in the following sections.
3.4.1 Local Variables
A local variable is one which only has scope within the block in which it was defined. That is, it may
only be referenced within that block. C supports two classes of local variables in functions: auto
variables which are normally allocated in the function’s auto-variable block, and static variables
which are always given a fixed memory location and have permanent duration.
3.4.1.1 Auto Variables
auto (short for automatic) variables are the default type of local variable. Unless explicitly declared
to be static a local variable will be made auto, however the auto keyword may be used if desired.
Note that most type qualifiers cannot be used with auto variables, since there is no control over the
storage location. The exceptions are const and volatile.
in the map file.
3.4.1.2 Static Variables
Uninitialized static variables are allocated in the bss psect. They will occupy fixed memory
locations which will not be overlapped by storage for other functions. Static variables are local in
scope to the function in which they are declared, but may be accessed by other functions via pointers
since they have permanent duration. Static variables are guaranteed to retain their value between
All auto variables exist for their duration in the stack. As such, they will not appear as symbols
rectly, must ensure that the contents of any non-active table registers are preserved.
Saving both TBLPTRH and TBLPTRU will ensure that this requirement is met.
Storage Class and Object Placement
79

Related parts for SW500011