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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

4. After your application has finished executing, examine <strong>the</strong> stack area of memory to see<br />

how many of <strong>the</strong> known values (zeros or 0xDEADDEAD) have been overwritten. The stack<br />

shows garbage in <strong>the</strong> part of <strong>the</strong> stack that has been used and zeros or 0xDEADDEAD values<br />

in <strong>the</strong> remainder.<br />

5. Count <strong>the</strong> number of known entries and multiply by four.<br />

6. Subtract <strong>the</strong> size of <strong>the</strong> remaining known entries from <strong>the</strong> size of <strong>the</strong> stack, in bytes.<br />

The result of <strong>the</strong> calculation shows how far <strong>the</strong> stack has grown in memory, in bytes.<br />

5.10.4 See also<br />

Reference<br />

Linker Reference:<br />

• --callgraph, --no_callgraph on page 2-15<br />

• --info=topic[,topic,...] on page 2-59.<br />

<strong>Using</strong> <strong>the</strong> fromelf Image Converter<br />

• --info=topic[,topic,...] on page 4-36.<br />

O<strong>the</strong>r in<strong>for</strong>mation<br />

• Procedure Call Standard <strong>for</strong> <strong>the</strong> <strong>ARM</strong> Architecture,<br />

http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042-/index.html<br />

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

ID061811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!