How do I preserve stack space with good code in an RTOS - EdgeBench