
17 Jun
2004
17 Jun
'04
1:48 p.m.
Hello,
On Mon, May 31, 2004 at 10:56:55PM +0200, "Martin v. Löwis" wrote:
Alternatively, Armin believes that Stackless "hard switching" can actually be implemented in mostly-platform-neutral C (either by setjmp/longjmp or alloca hacks, I forget which)
It is setjmp/longjmp. I have implemented a coroutine library on top of setjmp/longjmp myself, so I am well aware of the implications.
Actually, it was alloca(), and would be a real C hack that would probably fail on some platforms, depending on the phase of the moon. The idea was that alloca() can be abused to change the stack pointer almost freely.
Not-easy-to-shake-off-a-C-hacking-reputation'ly yours,
Armin