Please consider some professional embedded system with 16-bit microcontroller.
I know embedded software build tools report program flash memory usage. I think they also report RAM usage but do they report maximum RAM usage?
Build tools may not know how much heap will be used during...