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-19 20:57

>>1
tail call optimization and stack allocation don't mix so well. In general you can only always use stack allocation when the stack is actually the heap and is compacted after reaching its full size.

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