SW006010 Microchip Technology, SW006010 Datasheet - Page 54

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
apRNOVM^-page 48
C17 C Compiler User’s Guide
5.3.1
Two section attributes may optionally be included in a
directive:
• shared: Locate this section in a shared (unbanked) region of data memory. See
• overlay: Permit other sections to be located at the same physical address. This
See 5.6 “Locating Code” and 5.7 “Locating Data” for more on section attributes.
5.3.2
The type of code or data that will go into each section type is described in the following
sections.
5.3.2.1
A
5.3.2.2
A
Constant strings are also found in program memory. The
romdata
For more information on
the MPLINK User’s Guide portion of DS33014.
5.3.2.3
A
example, global variables are allocated as:
Compiler temporary variables are placed in a
an interrupt, compiler temporary variables are created in a
_tmpsection_
For example:
The compiler temporary variables for interrupt function
section
PIC17 device data sheets for more on shared data memory.
attribute can conserve memory by locating local variables from two different
functions to the same location (as long as both are not active at the same time.)
The overlay attribute can also be used in conjunction with the shared attribute.
rom int l;
rom char c = 'A';
strcmpram2pgm (Foo, “hello”);
int i;
char c;
void foo(void);
...
#pragma interrupt foo
void foo(void)
{
}
code
romdata
udata
/* perform interrupt function here */
section contains executable content located in program memory.
_tmpsection_foo
section contains uninitialized data statically allocated into data memory. For
section that contains all constant strings. For example:
Section Attributes
Section Contents
code
romdata
udata
section contains data allocated into program memory. For example:
function_name.
romdata
.
usage (e.g., for memory-mapped peripherals) see
udata
section named
#pragma sectiontype
foo
.stringtable
 2002 Microchip Technology Inc.
udata
will be placed in the
section named
_tmpstore
section is a
. For
udata

Related parts for SW006010