Hi all,
I recently wrote a simple script to calculate the stack usage of code
written for the STM8 platform and compiled with SDCC. I thought I would
share it here as some may find it useful.
https://github.com/basilhussain/stm8-stack-usage
It's an Awk script that parses the .asm intermediate assembly files
generated by SDCC, and calculates the stack usage on a per-function
basis. It's fairly rudimentary, so each function is only analysed in
isolation, and no function call chain/graph is taken into account.
Please let me know if you find any errors or have any suggestions for
improvement.
Thanks,
Basil Hussain
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user