??? 09/12/07 15:28 Read: times |
#144476 - Stack Responding to: ???'s previous message |
Erik Malund said:
I agree that if you go beyond the simplest "task switching" i.e. the workloop, the stack DOES become an issue, but with no 'dynamic' task switching and call tree allocation, I see no "stack inefficiency". The stack does what it's designed to do (for the 8051) efficiently: Pushing and popping primarily return addresses and temporarily storing registers. But if you want to do what a stack is additionally used for on other common platforms (such as parameter passing), the 8051's stack design is inefficient whether you use multiple tasks or not. Maybe inefficient isn't the right word: It's limited. Regards, Craig Steiner |