Andrew Piskorski wrote:
On Tue, Feb 11, 2003 at 02:40:11AM -0800, Jeff Hobbs wrote:
>I added that warning in myself after getting enough reports. I narrowed
>the size to 2400K to match the default Tcl eval stack recursion limit of
>1000. I think 4M is more than you need, 1M will likely do it, and 2400K
>covers all the bases.
Jeff, for those of us not especially familiar with the Tcl internals,
could you give or point us to a basic explanation of how and why Tcl
uses the C stack, as opposed to being "stackless"? (A Google search
for "stackless Tcl" turns up some interesting links, but doesn't seem
to really answer this question.)
Not to whine, but I think I was using the DEC-10 in 1979 when I first
encountered stacks that would grow themselves as appropriate. I think
the technique then was to place the top of the stack against a protected
page of memory. When the stack overflowed, the protected page was
accessed and an error handler caught the error and extended the stack.
Thus any error was NOT death by mysterious data overrun, but was instead
an understandable abs. max stack size had been exceeded.
Sigh, that must've been some sort of computing golden age.... Oh for
the renaissance!
Jerry