Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!purdue!decwrl!sun!pitstop!sundc!seismo!uunet!munnari!bruce!mark
From: mark@bruce.oz (Mark Goodwin)
Newsgroups: comp.sys.pyramid
Subject: Re: coroutine switch question
Message-ID: <648@bruce.oz>
Date: 4 Dec 88 22:18:07 GMT
References: <12237@bellcore.bellcore.com>
Organization: Comp Sci, Monash Uni, Australia
Lines: 12

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.