> It might be possible to modify the thread create code to use
> user-allocated stacks with guard zones.  Haven't tried it myself.

Along these lines, there is a TclpCheckStackSpace call that isn't
implemented on most unix platforms to prevent the crash.  The reason
is that implementations on Unix are not very portable, and can also
be more costly than desired.

Another alternative farther down the road is to look into porting
up the non-recursive bytecode engine that ActiveState has in place
for embedded porting work done for Cisco (where they are putting
Tcl on all routers).  This has reduced stack requirements (as can
be expected for embedded environments).

Jeff

Reply via email to