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.15 Handling branches that optimize to a NOP<br />

5.15.1 See also<br />

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

By default, <strong>the</strong> linker replaces any branch with a relocation that resolves to <strong>the</strong> next instruction<br />

with a NOP instruction. This optimization can also be applied if <strong>the</strong> linker reorders tail calling<br />

sections.<br />

However, <strong>the</strong>re are cases where you might want to disable <strong>the</strong> option, for example, when<br />

performing verification or pipeline flushes.<br />

To control this optimization, use <strong>the</strong> --branchnop and --no_branchnop command-line options.<br />

Concepts<br />

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

Reference<br />

<strong>Linker</strong> Reference:<br />

• --branchnop, --no_branchnop on page 2-25.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!