Protothreads: Lightweight Stackless Threads in C
These seem to work with some clever (ab)use of switch statements: <a href="http://dunkels.com/adam/pt/expansion.html" rel="nofollow">http://dunkels.com/adam/pt/expansion.html</a>