This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how does RTX51 TINY resume a task?

As I know, in order to resume a task, uC/OS-II copy the whole hardware stack to the external simulated stack. However, RTX51 tiny just preserve part content of hardware stack of a task,then ,how does tiny resume a task?
Thanks in advance!

Parents Reply Children
  • RTX51 Tiny maintains a stack for each task using only the internal memory (IDATA) of the 8051. But the internal memory of the 8051 is very limited.if I create several tasks,maybe the stack would be overflow.How does TINY solve this problem? when task swithing ,in order to resume previous tasks later,do all of the registers and local varibles will be saved in the stack?Thanks.

  • Actually the stack requirements in real applications are not as high as you imaging. Basically only the call/ret addresses are stored on the stack.

    With other words, stack was not an issue on several 1000 RTX TINY user applications in the past 12 years.