[gambit-list] non-tail recursion segfaults
pdawes at users.sf.net
Mon Apr 2 10:54:37 EDT 2007
Hi Gambit list,
I've started getting segmentation faults whenever I compile
srfi-1.scm and use it within my program and was wondering if it was
to do with non-tail recursion.
I did a quick experiment and found that on my machine the following code
compiled with gsc segfaults when i is just 20000 (it works fine
(define (loop i)
(if (zero? i)
(cons i (loop (- i 1)))))
This seems quite limiting - is there flag I can tweak to improve this?
More information about the Gambit-list