Eekle / Nesiac

Embedded memory usage analyser
MIT License
31 stars 1 forks source link

stack usage #6

Open ali-rostami opened 9 months ago

ali-rostami commented 9 months ago

It's a very nice tool. Can you also add stack usage and call graph to it? something like callgraph window in STM32Cubeide?

Eekle commented 9 months ago

Hi, glad to hear you like it.

This is quite a big request - GCC does not easily expose total stack usage. Instead it gives you per-function stack usage in .su files per compilation unit, and you have to assemble the overall stack usage yourself from that + the call graph.

I suspect that even if we built the functionality, it might still not be too much extra functionality to fit nicely in Nesiac. But proposals or PRs are welcome.

In the mean time, I would recommend Puncover for stack usage analysis - it's what I use!