jku-ssw / cicro-benchmarks

A C mICRO benchmark suite
Other
8 stars 4 forks source link

another metric: maximum stack size #19

Open pointhi opened 6 years ago

pointhi commented 6 years ago

We had the idea to measure the maximum stack-size used.

I did not found any references for this, but in case of single-threaded programs one way to measure it would be filling the stack below our current function full with magic-bytes, and then checking afterwards how much was overwritten.

pointhi commented 6 years ago

I would leave this in the backlog for now. Measuring the exact stack size is quite hard because we need to compensate a lot of things: