Author Topic: Stack for task  (Read 46 times)

0 Members and 3 Guests are viewing this topic.

Offline lorenrus

  • Contributor
  • Posts: 45
  • Country: it
Stack for task
« on: Today at 08:47:32 pm »
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
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf