SW006012 Microchip Technology, SW006012 Datasheet - Page 71

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
4.4
© 2007 Microchip Technology Inc.
CODE AND DATA SECTIONS
MPLAB C30 C Compiler Runtime Environment
A section is a locatable block of code or data that will occupy contiguous locations in
the dsPIC DSC device memory. In any given object file, there are typically several
sections. For example, a file may contain a section for program code and one for unini-
tialized data, among others.
The MPLAB C30 compiler will place code and data into default sections unless
instructed otherwise through the use of section attributes (for information on the section
attribute, see Section 2.3 “Keyword Differences”). While all compiler-generated
executable code is allocated into a section named .text, data is allocated into
different sections based on the type of data, as shown in Table 4-1.
TABLE 4-1:
Each default section and a description of the type of information stored into that section
is listed below.
.text
Executable code is allocated into the .text section.
.data
Initialized variables with the far attribute are allocated into the .data 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 initialized variables.
.ndata
Initialized variables with the near attribute are allocated into the .ndata 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.
.const
Constant values, such as string constants and const-qualified variables, are allocated
into the .const section when using the default -mconst-in-code command-line
option. This section is intended to be located in program memory and accessed using
the PSV window.
Variables may also be placed into the .const section by using the section attribute:
int i
regardless of whether the -mconst-in-code option is present on the command line.
near
far
__
attribute
Variables
.ndata
.data
COMPILER-GENERATED DATA SECTIONS
__
((space(auto_psv)));
Initialized
Constants in ROM
.const
.const
Constants in RAM
.ndconst
.dconst
Uninitialized
DS51284F-page 65
Variables
.nbss
.bss

Related parts for SW006012