Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Lisp to C compiler

Name: Anonymous 2014-04-19 17:42

Hi! It is me again!

I've found that continuations in C/C++ doesn't require tail-call optimization on the part of the compiler. You can just do setjmp and longjmp when stack gets close to full. This means you can't do stack allocation, but you should allocate everything on heap anyway.

Name: Anonymous 2014-04-21 16:48

>>11
>>12

Actually, it doesn't wait til the stack is blown, they just check if they've hit a limit every so often and GC if necessary.

This pdf covers it pretty well
http://www.call-with-current-continuation.org/scheme-implementation-techniques.pdf

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List