??? 09/12/07 14:25 Read: times |
#144468 - Clarification Responding to: ???'s previous message |
Erik Malund said:
So not only the task switching overhead is significant, but also the task itself is slowed down by inefficient stack access. Maarten Brock said:
Seems like this inefficiency is a problem whether you are using multitasking or not. True??? Erik Malund said:
HUH? how can a 'task' ineffciency apply when you do not have 'tasks' I think Maarteen is commenting on the fact that the stack implementation is an inherent inefficiency of the 8051 architecture and is not specific to the concepts of tasks. Any application that makes use of the stack for what a stack is commonly used for (such as parameter passing) is going to suffer similar inefficiencies--which is why, as he said earlier, most 'C' compilers default to non-reentrant functions... even without tasks. Regards, Craig Steiner |