0

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?

artless noise
  • 21,212
  • 6
  • 68
  • 105
Justin J
  • 1
  • 1

1 Answers1

0

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.

leaumonte
  • 49
  • 2