How do I preserve stack space with good code in an RTOS - DevHeads IoT Integration Server