The Rabbits have a stack protection feature. We could introduce an option to enable it. When enabled, we'd set the stack pointer, and stack protection registers accordingly. We would also give an error if no stack violation interrupt is defined.
There are open questions: Should the lower stack bound be dynamically adjusted by the heap (de)allocation functions? Doing so would give optimal protection and memory use, but add overhead to memory (de)allocation.
might also be interesting to support -fstack-protector
Yes, but IMO that should be a separate feature request.
Looks like hardware documentation is incomplete. I tried some experiments, but have not been able to trigger the stack protection interrupt at all: https://forums.digi.com/t/how-does-the-rabbot-stack-protection-work/37813