felix winkelmann scripsit:
> On 9/30/06, John Cowan <address@hidden> wrote:
> >How does the Chicken runtime detect incipient C stack overflow
> >reliably? I tried to RTFS, but got lost in a maze.
>
> You mean the stack-overflow that triggers a minor GC? Very simple,
> it regularly compares the current stack-pointer with a precomputed limit
> (see C_demand in chicken.h).
Yes, I was able to trace that far. But how does C_stack_limit
actually get set? Looking for assignments to it just confused me
further.
--
John Cowan address@hidden http://ccil.org/~cowan
The competent programmer is fully aware of the strictly limited size of his own
skull; therefore he approaches the programming task in full humility, and among
other things he avoids clever tricks like the plague. --Edsger Dijkstra
_______________________________________________
Chicken-hackers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-hackers