Keil Logo

How much Stack size needed

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
richard urs
Posted
8-Jan-2013 08:30 GMT
Toolset
ARM
New! How much Stack size needed

Hello
Im using uVision3 3.60 with LPC2366. How can I get the maximum stack usage?

I tried like this (see below) but the result is: Maximum Stack Usage = 0 bytes + Unknown(Cycles, Untraceable Function Pointers)

to find out how much stack you need, you can compile with all options selected on the linker listing section in the listing tab, then it produces an HTML file listing the functions and there callers / callees and required stack size ( static call graph ), this lists the maximum stack size that it can determine.

thanks for help
urs

Read-Only
Author
Mike Kleshov
Posted
8-Jan-2013 09:33 GMT
Toolset
ARM
New! RE: How much Stack size needed

Well, you can measure stack usage for any particular program run:

http://www.keil.com/forum/20244/

Obviously, different progrum runs can give you different results, but at least it's hard data you can work with.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.