[PicForth] Re: multitasker.fs question

David McNab david at rebirthing.co.nz
Mon Dec 6 07:43:34 CET 2004


Samuel Tardieu wrote:
> I've made a quick change to multitasker.fs. You can redefine
> thread-stack-size (in meta mode, as documented) after including
> multitasker.fs and before defining the first task.
> I haven't tried it though. Please try it from my Darcs repository.

Ok, I'm in the process of building some test progs.

Just one question - given that the return stack on PIC16F chips is 
totally non-addressible, does this mean that 'yield' instructions may 
only occur in the very top level of each task?

In other words, would I crap on the return stack if task 'fred' calls 
word 'mary', and 'mary' sits in a loop periodically executing a 'yield'?

If this is the case (I expect it would be), then it might be worth a 
mention in the doco.

-- 
Cheers
David


More information about the PicForth mailing list