SW500009 Microchip Technology, SW500009 Datasheet - Page 144

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
Operation
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.
130
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
-Ptext=0,data=8000h/,bss/. -Pnvram=bss,heap
Linker and Utilities

Related parts for SW500009