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.

Chapter 5<br />

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

The following topics describe <strong>the</strong> optimizations available in <strong>the</strong> linker, armlink:<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 />

• Inlining functions with <strong>the</strong> linker on page 5-18<br />

• Handling branches that optimize to a NOP on page 5-21<br />

Concepts<br />

• Elimination of common debug sections on page 5-2<br />

• Elimination of common groups or sections on page 5-3<br />

• Elimination of unused sections on page 5-4<br />

• Elimination of unused virtual functions on page 5-6<br />

• About linker feedback on page 5-7<br />

• Example of using linker feedback on page 5-9<br />

• About link-time code generation on page 5-11<br />

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

• How <strong>the</strong> linker chooses a compressor on page 5-14<br />

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

• Factors that influence function inlining on page 5-19<br />

• About reordering of tail calling sections on page 5-22<br />

• Restrictions on reordering of tail calling sections on page 5-23<br />

• About merging comment sections on page 5-24.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!