[Stackless] can it be done with setjmp/longjmp?

Delaney, Timothy tdelaney at avaya.com
Tue Feb 26 23:38:07 CET 2002

> From: Christian Tismer [mailto:tismer at tismer.com]
> Sam M. Rushing wrote:
> > I'm wondering if what you're doing can't be done with 
> setjmp/longjmp.
> > 
> > I've found several user-threads libraries that get by with 
> just setjmp
> > (as opposed to assembly code):
> Yes, I'm pretty sure it is possible.
> To unwind the stack, I can use setjmp/longjmp.
> To rebuild it, I can use alloca.
> This technique is a little more expensive, and
> it is a bit tricky, but I think to provide
> such an option as a fallback solution.

So, would this possibly allow for a platform-independent implementation,
with platform-dependent optimisation where people supply it?

Just how portable is setjmp/longjmp these days? It's been quite a while
since I looked at it.


Tim Delaney
Stackless mailing list
Stackless at www.tismer.com

More information about the Stackless mailing list