How to implement continuations?

Posted by Kyle Cronin on Stack Overflow See other posts from Stack Overflow or by Kyle Cronin
Published on 2008-08-09T01:18:37Z Indexed on 2010/06/08 0:32 UTC
Read the original article Hit count: 408

Filed under:
|
|

I'm working on a Scheme interpreter written in C. Currently it uses the C runtime stack as its own stack, which is presenting a minor problem with implementing continuations. My current solution is manual copying of the C stack to the heap then copying it back when needed. Aside from not being standard C, this solution is hardly ideal.

What is the simplest way to implement continuations for Scheme in C?

© Stack Overflow or respective owner

Related posts about c

    Related posts about Scheme