[PicForth] Re: [gnupic] multitasking

David McNab david at rebirthing.co.nz
Fri Feb 4 23:21:56 CET 2005


FWICT, both these OS kernels require a C compiler.

ATM there are no full-featured free C compilers for PIC18 (or any PIC, 
for that matter).

sdcc, the best of the free bunch, appears to be incomplete.

OTOH, the 'free' versions of the commercial compilers are either 
time-bombed, or have some hideous crippling (eg, 3/4 of program memory 
space disabled, or max 1024 instructions/module etc)

Back to Pic18Forth...

After having got the static multitasker working and looking stable, I'm 
now working on a dynamic multitasker (allowing spawning/termination of 
threads at runtime). Bigger overhead than the static multitasker, but 
much more flexible (can pass initial stack args to new threads, can run 
multiple thread instances of the same function, can stop/restart the 
multitasker...). But even with the larger overhead, I'm fitting the 
kernel, scheduler, support routines plus three threads into less than 
4kbytes of program memory.

I'll include this in the next alpha announcement when it stabilises.

Cheers
David

Xavier MONTAGNE wrote:
> Same for PICos18 (www.picos18.com)
> Xavier
> 
>>Message du 04/02/05 14:46
>>De : nisma at gmx.net
>>A : "David McNab" 
>>Copie à : gnupic at linuxhacker.org, picforth at lists.rfc1149.net
>>Objet : Re: [gnupic] multitasking
>>
>>do you have considered using freeRTOS.
>>It's GPL copyright and usable for embedded systems, because it have a
>>licence exception especially for embedded systems.
>>
>>-- 
>>DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
>>AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: gnupic-unsubscribe at linuxhacker.org
>>For additional commands, e-mail: gnupic-help at linuxhacker.org
>>
>>
>>


More information about the PicForth mailing list