11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Map FilesLinker and Utilitiespreceding line. In this fashion, HLINK commands of almost unlimited length may be issued. Forexample a link command file called x.lnk and containing the following text:-Z -OX.OBJ -MX.MAP \-Ptext=0,data=0/,bss,nvram=bss/. \X.OBJ Y.OBJ Z.OBJ C:\HT-Z80\LIB\Z80-SC.LIBmay be passed to the linker by one of the following:hlink @x.lnkhlink < x.lnk5.9 Map FilesThe map file contains information relating to the relocation of psects and the addresses assignedto symbols within those psects. The sections in the map file are as follows; first is a copy of thecommand line used to invoke the linker. This is followed by the version number of the object codein 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 werelinked, 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 summarisesmajor memory groupings. This will typically show RAM and ROM usage. The segmentnames are derived from the name of the first psect in the segment.Lastly (not shown in the example) is a symbol table, where each global symbol is listed with itsassociated psect and link address.100Linker 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.libObject code version is 2.4Machine type is Z80Name Link Load Length SelectorC:\HT-Z80\LIB\rtz80-s.objvectors 0 0 71bss 8000 8000 24const FB FB 1 0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!