sjs@spectral.ctt.bellcore.com (Stan Switzer) (12/02/88)
I'm trying to do coroutine context switching on a Pyramid. The chgstack() system call seems to be what I need to do it, but I can't figure out how to set up the initial stack frame. Has anyone else figured out how to do this? Thanks, Stan Switzer sjs@ctt.bellcore.com
mark@bruce.oz (Mark Goodwin) (12/05/88)
From article <12237@bellcore.bellcore.com>, by sjs@spectral.ctt.bellcore.com (Stan Switzer): > I'm trying to do coroutine context switching on a Pyramid. The > chgstack() system call seems to be what I need to do it, but I can't > figure out how to set up the initial stack frame. > > Has anyone else figured out how to do this? Chgstack() can be used and works in the BSD universe. I have written a coroutine switch for the Icon programming language - let me know if you want a copy (reasonably nasty code, though no assembler). Mark Goodwin, Programmer @ Monash University Computer Science.