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.
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