SW006010 Microchip Technology, SW006010 Datasheet - Page 24

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 18
C17 C Compiler User’s Guide
2.6.4
2.6.4.1
The section declaration family of pragmas changes the section into which
MPLAB C17 will allocate data of the associated type. Optionally, the section may be
allocated at an absolute address.
A section declaration with no name resets the allocation of data of the associated type
to the default section for the current module.
A data section qualified as
Similarly, a data section qualified as
linker.
Specifying a section name which has been previously declared causes MPLAB C17 to
resume allocating data of the associated type into the specified section. The section
qualifiers must match the previous declaration.
For
and a bank number may be optionally specified instead of an absolute address. This
is functionally equivalent to specifying a
for each symbol declared in the section. Like
information to the compiler only and is not enforced by the linker; therefore, care
should be exercised in its use.
2.6.4.2
section-directive:
data-qualifier:
location:
2.6.4.3
Declare a section for udata allocation at address
section will be located at address
Resume allocation of romdata into the default section.
Declare a new code section at address
2.6.4.4
Note: Logical sections are used to specify which of the defined memory regions
udata
#pragma udata [data-qualifier-list] [section-name
#pragma idata [data-qualifier-list] [section-name
#pragma romdata [overlay] [section-name] new-line
#pragma code [overlay] [section-name] new-line
shared
overlay
= address
gpr bank-number
sfr bank-number
#pragma udata myNewDataSection = 0x120
#pragma romdata
#pragma code myExternalCodeSection=0x8000
#pragma varlocate
should be used for a portion of source code. For more on sections, refer to
the MPLINK linker section of the MPASM™ User's Guide with MPLINK™
and MPLIB™ (DS33014).
#pragma sectiontype
DESCRIPTION
SYNTAX
EXAMPLE
SEE ALSO
and
idata
sections in MPLAB C17, the data section type, SFR or GPR,
[location]] new-line
[location]] new-line
shared
0x120
will be located in a
access
0x8000
varlocate
.
will be located in an
varlocate
.
0x120
pragma with the same information
SHAREBANK
. The linker will enforce that the
, this qualifier provides
 2002 Microchip Technology Inc.
ACCESSBANK
by the linker.
by the

Related parts for SW006010