SW500007 Microchip Technology, SW500007 Datasheet - Page 133

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500007

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015P
778-1002
778-1002
Linker and Utilities
5.7.20 -Pspec
Psects are linked together and assigned addresses based on information supplied to the linker via -P
options. The argument to the -P option consists basically of comma-separated sequences thus:
There are several variations, but essentially each psect is listed with its desired link and load ad-
dresses, and a minimum value. All values may be omitted, in which case a default will apply,
depending on previous values.
link or load address. The address will be calculated as described below, but if it is less than the
minimum then it will be set equal to the minimum.
or classes, or special tokens. If the link address is a negative number, the psect is linked in reverse
order with the top of the psect appearing at the specified address minus one. Psects following a
negative address will be placed before the first psect in memory. If a link address is omitted, the
psect’s link address will be derived from the top of the previous psect, e.g.
In this example the text psect is linked at 100 hex (its load address defaults to the same). The data
psect will be linked (and loaded) at an address which is 100 hex plus the length of the text psect,
rounded up as necessary if the data psect has a reloc= value associated with it. Similarly, the bss
psect will concatenate with the data psect. Again:
will link in ascending order bss, data then text with the top of text appearing at address 0ffh.
character is supplied, but no address is supplied after it, the load address will concatenate with the
previous psect, e.g.
will cause both text and data to have a link address of zero, text will have a load address of 0, and
data will have a load address starting after the end of text. The bss psect will concatenate with data
for both link and load addresses.
address of this psect to the same as its link address. The link or load address may also be the name of
another (already linked) psect. This will explicitly concatenate the current psect with the previously
specified psect, e.g.
The minimum value, min, is preceded by a + sign, if present. It sets a minimum value for the
The link and load addresses are either numbers as described above, or the names of other psects
If the load address is omitted entirely, it defaults to the same as the link address. If the slash /
The load address may be replaced with a dot . character. This tells the linker to set the load
-Ppsect=lnkaddr+min/ldaddr+min,psect=lnkaddr/ldaddr, ...
-Ptext=100h,data,bss
-Ptext=-100h,data,bss
-Ptext=0,data=0/,bss
Operation
119

Related parts for SW500007