13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

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.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>General Record FormatIn the output file, the record <strong>for</strong>mat is::lengthoffsettypecontentchecksumwhere::lengthoffsettypeis the record header.is the record length which specifies the number of bytes of the content field. Thisvalue occupies one byte (two hexadecimal digits). The linker outputs records of255 bytes (32 hexadecimal digits) or less; that is, length is never greater than 0xFF.is the starting load offset specifying an absolute address in memory where thedata is to be located when loaded by a tool. This field is two bytes long. This fieldis only used <strong>for</strong> Data Records. In other records this field is coded as four ASCIIzero characters ('0000').is the record type. This value occupies one byte (two hexadecimal digits). Therecord types are:Byte Type000102030405Record TypeDataEnd of fileExtended segment address (not used)Start segment address (not used)Extended linear address (32-bit)Start linear address (32-bit)contentchecksumis the in<strong>for</strong>mation contained in the record. This depends on the record type.is the record checksum. The linker computes the checksum by first adding thebinary representation of the previous bytes (from length to content). The linkerthen computes the result of sum modulo 256 and subtracts the remainder from256 (two's complement). There<strong>for</strong>e, the sum of all bytes following the header iszero.796

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

Saved successfully!

Ooh no, something went wrong!