5

Actually, two sizes: initially committed and total reserved.

Do you use static or dynamic analysis? Which tools? Which techniques?

1

1 Answer 1

2

One technique is to paint your stack in main or the threads main with a known value and then on cleanup do a sweep from the stack limit until your known value is no longer found.

Your stack end will be defined as a symbol, generate a .map file to determine the stack limits and their symbol names.

It is discussed here: How to determine maximum stack usage?

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, this helps with "total reserved" part of the question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.