29.10.2014 Views

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Compiler</strong> Coding Practices<br />

5.22 Inline functions and removal of unused out-of-line functions at link time<br />

The linker cannot remove unused out-of-line functions from an object unless you place <strong>the</strong><br />

unused out-of-line functions in <strong>the</strong>ir own sections using one of <strong>the</strong> following methods:<br />

• --split_sections<br />

• #pragma arm section [section_type_list]<br />

• linker feedback.<br />

--feedback is typically an easier method of enabling unused function removal.<br />

Reference<br />

<strong>Compiler</strong> Reference:<br />

• --feedback=filename on page 3-39<br />

• --split_sections on page 3-87<br />

• #pragma arm section [section_type_list] on page 5-48.<br />

<strong>ARM</strong> DUI 0375C Copyright © 2007-2008, 2011 <strong>ARM</strong>. All rights reserved. 5-33<br />

ID061811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!