SW006012 Microchip Technology, SW006012 Datasheet - Page 72

C COMPILER FOR DSPIC30F FAMILY

SW006012

Manufacturer Part Number
SW006012
Description
C COMPILER FOR DSPIC30F FAMILY
Manufacturer
Microchip Technology
Type
MPLAB® C30 Compilerr
Series
PIC24 & DsPICr
Datasheets

Specifications of SW006012

Supported Families
PIC24, DsPIC30F And DsPIC33F
Core Architecture
PIC, DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Tool Type
Compiler
Processor Series
PIC24, dsPIC
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
dsPIC30F
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
DS51284F-page 66
®
C30 User’s Guide
.dconst
Constant values, such as string constants and const-qualified variables, are allocated
into the .dconst section when using the -mlarge-data command-line option
without using the -mconst-in-code command-line option. Unless the linker option
--no-data-init is specified, the MPLAB C30 startup code will initialize this section
by copying data from the .dinit section. The .dinit section is created by the linker
and located in program memory.
.ndconst
Constant values, such as string constants and const-qualified variables, are allocated
into the .ndconst section when using the default -msmall-data command-line
option without using the -mconst-in-code command-line option. Unless the linker
option --no-data-init is specified, the MPLAB C30 startup code will initialize this
section by copying data from the .dinit section. The .dinit section is created by
the linker and located in program memory.
.bss
Uninitialized variables with the far attribute are allocated into the .bss section. When
the large data memory model is selected (i.e., when using the -mlarge-data
command-line option), this is the default location for uninitialized variables.
.nbss
Uninitialized variables with the near attribute are allocated into the .nbss section.
When the small data memory model is selected (i.e., when using the default
-msmall-data command-line option), this is the default location for initialized
variables.
.pbss - Persistent Data
Applications that require data storage in RAM which are not affected by a device reset
can use section .pbss for this purpose. Section .pbss is allocated in near data
memory and is not modified by the default startup module in libpic30.a.
Uninitialized variables may be placed in the .pbss section using the section attribute:
int i
To take advantage of persistent data storage, the main() function should begin with a
test to determine what type of reset has occurred. Various bits in the RCON reset con-
trol register can be tested to determine the reset source. See Section 8 in the
“dsPIC30F Family Reference Manual” (DS70046) for more information.
__
attribute
__
((persistent));
© 2007 Microchip Technology Inc.

Related parts for SW006012