I'm working on creating my own scheduler. I was thinking about the stack that must be assigned to each task. (Passing the stack value I thought I'd put it as an input parameter when creating the task).
All automatic variables that would be created within the task should be saved within their respective stack, correct?
Also I believe that to do this surely the various systems like FreeRTOS will work with the assembler to move the automatic variables within the task in the op stack, right?
I was thinking if it was possible to do it in another way by saving the variables in the stack to do a simulation on PC.
Thank you