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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.9 How <strong>the</strong> linker chooses a compressor<br />

5.9.1 See also<br />

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

armlink ga<strong>the</strong>rs information about <strong>the</strong> content of data sections before choosing <strong>the</strong> most<br />

appropriate compression algorithm to generate <strong>the</strong> smallest image. If compression is<br />

appropriate, <strong>the</strong> linker can only use one data compressor for all <strong>the</strong> compressible data sections<br />

in <strong>the</strong> image. Different compression algorithms might be tried on <strong>the</strong>se sections to produce <strong>the</strong><br />

best overall size. Compression is applied automatically if:<br />

Compressed data size + Size of decompressor < Uncompressed data size<br />

When a compressor has been chosen, armlink adds <strong>the</strong> decompressor to <strong>the</strong> code area of your<br />

image. If <strong>the</strong> final image does not contain any compressed data, no decompressor is added.<br />

Concepts<br />

• Optimization with RW data compression on page 5-13<br />

• How compression is applied on page 5-16.<br />

Tasks<br />

• Overriding <strong>the</strong> compression algorithm used by <strong>the</strong> linker on page 5-15<br />

• Working with RW data compression on page 5-17.<br />

<strong>ARM</strong> DUI 0474C Copyright © 2010-2011 <strong>ARM</strong>. All rights reserved. 5-14<br />

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!