9 years, 2 months ago.

How to find how heap/stack are in use?

Can I measure how the heap area are used by variables or malloc()s, as well as occupied stack size? I want to know how much free RAM area available during operation. For occupied stack size, it can be checked by the address the stack pointer. How can I find the free heap area?

1 Answer

9 years, 2 months ago.

Please use search functionality here, it was answered couple of times. Thanks

Accepted Answer

Thank for your suggestion. Yesterday, I failed to find the related posts here, but now I found https://developer.mbed.org/forum/helloworld/topic/3948/ , which seems to help to find the answer. Thanks!

posted by Junichi Akita 03 Sep 2015

Or use google to search the site, sometimes it works better than the built in seach: https://www.google.co.uk/webhp?hl=en#safe=off&hl=en-GB&q=site:developer.mbed.org+heap+size

posted by Andy A 03 Sep 2015

+1 for google, was going to suggest that

posted by Martin Kojtal 03 Sep 2015