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

RTX51 Tiny

If a function called by one task is interrupted by Round-Robin or os_switch_task the auto variants in which fuction are saved or not?

In the RTX51 Tiny User's Guide, you said: When a task switch occurs, the previous task stack is shrunk and relocated and the stack for the current task is expanded and relocated. So I think above auto variants may be overwited by next task.


Parents
  • When a task switch occurs, the previous task stack is shrunk and relocated and the stack for the current task is expanded and relocated. So I think above auto variants may be overwited by next task.

    Why would you think that? Automatic variables are not stored on the stack in C51. So, the above has no effect on automatic variables.

    Jon

Reply
  • When a task switch occurs, the previous task stack is shrunk and relocated and the stack for the current task is expanded and relocated. So I think above auto variants may be overwited by next task.

    Why would you think that? Automatic variables are not stored on the stack in C51. So, the above has no effect on automatic variables.

    Jon

Children
No data