SW500009 Microchip Technology, SW500009 Datasheet - Page 147

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
Linker and Utilities
5.10 Invoking the Linker
The linker is called HLINK, and normally resides in the BIN subdirectory of the compiler installation
directory. It may be invoked with no arguments, in which case it will prompt for input from standard
input. If the standard input is a file, no prompts will be printed. This manner of invocation is
generally useful if the number of arguments to HLINK is large. Even if the list of files is too long
to fit on one line, continuation lines may be included by leaving a backslash \ at the end of the
preceding line. In this fashion, HLINK commands of almost unlimited length may be issued. For
example a link command file called x.lnk and containing the following text:
may be passed to the linker by one of the following:
5.11 Map Files
The map file contains information relating to the relocation of psects and the addresses assigned
to symbols within those psects. The sections in the map file are as follows; first is a copy of the
command line used to invoke the linker. This is followed by the version number of the object code
in the first file linked, and the machine type. This is optionally followed by call graph information,
depended on the processor and memory model selected. Then are listed all object files that were
linked, along with their psect information. Libraries are listed, with each module within the library.
The TOTALS section summarises the psects from the object files. The SEGMENTS section sum-
marises major memory groupings. This will typically show RAM and ROM usage. The segment
names are derived from the name of the first psect in the segment.
associated psect and link address.
Lastly (not shown in the example) is a symbol table, where each global symbol is listed with its
-Z -OX.OBJ -MX.MAP \
-Ptext=0,data=0/,bss,nvram=bss/. \
X.OBJ Y.OBJ Z.OBJ C:\HT-Z80\LIB\Z80-SC.LIB
hlink @x.lnk
hlink < x.lnk
Linker command line:
-z -Mmap -pvectors=00h,text,strings,const,im2vecs \
-pbaseram=00h -pramstart=08000h,data/im2vecs,bss/.,stack=09000h \
-pnvram=bss,heap \
-oC:\TEMP\l.obj C:\HT-Z80\LIB\rtz80-s.obj hello.obj \
C:\HT-Z80\LIB\z80-sc.lib
Invoking the Linker
133

Related parts for SW500009