简体   繁体   中英

Heap & Stack Usage ARM Cortex M3, M5

I want to measure Stack and heap usage while certain mathematical algorithm is running on my Renesas S3A7 ARM M3 based controller. Is there any way or procedure how I can measure the maximum memory utilized while executing certain functionality?

To measure the stack or heap usage you have to initialize this area with a padding value before usage, you can choose one listed below

https://en.wikipedia.org/wiki/Hexspeak

For example: 0xBAADF00D or 0xDEADBEEF.

The idea is to count the number of padding value left to estimate the maximum usage.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM