06.02.2013 Views

ARM Compiler toolchain Using the Linker - ARM Information Center

ARM Compiler toolchain Using the Linker - ARM Information Center

ARM Compiler toolchain Using the Linker - ARM Information Center

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.

5.10 Overriding <strong>the</strong> compression algorithm used by <strong>the</strong> linker<br />

5.10.1 See also<br />

<strong>Using</strong> linker optimizations<br />

You can override <strong>the</strong> compression algorithm used by <strong>the</strong> linker by ei<strong>the</strong>r:<br />

• using <strong>the</strong> --datacompressor off option to turn off compression<br />

• specifying a compression algorithm.<br />

To specify a compression algorithm, use <strong>the</strong> number of <strong>the</strong> required compressor on <strong>the</strong> linker<br />

command line, for example:<br />

armlink --datacompressor 2 ...<br />

Use <strong>the</strong> command-line option --datacompressor list to get a list of compression algorithms<br />

available in <strong>the</strong> linker:<br />

armlink --datacompressor list<br />

...<br />

Num Compression algorithm<br />

========================================================<br />

0 Run-length encoding<br />

1 Run-length encoding, with LZ77 on small-repeats<br />

2 Complex LZ77 compression<br />

When choosing a compression algorithm be aware that:<br />

• compressor 0 performs well on data with large areas of zero-bytes but few nonzero bytes<br />

• compressor 1 performs well on data where <strong>the</strong> nonzero bytes are repeating<br />

• compressor 2 performs well on data that contains repeated values.<br />

The linker prefers compressor 0 or 1 where <strong>the</strong> data contains mostly zero-bytes (>75%).<br />

Compressor 2 is chosen where <strong>the</strong> data contains few zero-bytes (

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

Saved successfully!

Ooh no, something went wrong!