On Fri, Jun 21, 2002 at 12:49:27PM -0400, Melvin Smith wrote:
> >- Each co-routine should probably have its own interpreter.
> 
> I'm not sure about this one. I think we can accomplish it without
> the full overhead of a new interpreter.

I don't understand.  It should not be much more expansive to create a
interpreter than to copy a context, especially when you also need to
allocate some new stacks.  So, it should be ok to create an new
interpreter each time a co-routine is started.  And then, switching
between the co-routine and its caller is just a matter of modifiying
the "interpreter" pointer.

-- Jerome

Reply via email to