From: Paul Hanchett Date: 2005-03-18T04:11:18+09:00 Subject: Re: Maximum stack depth (Showing my ignorance:) I thought windows apps had an automatically expanding stack. Glenn Parker wrote: > Yukihiro Matsumoto wrote: > >> >> Ruby uses C stack, so that you need to use ulimit to specify a limit >> on stack depth. > > > Thank you for the tip, but I'm afraid ulimit is not an option under > WinXP, and I have no idea what the corresponding tweak would be. > > I will suggest to the Shootout folks that they try boosting the stack > size with ulimit for the Ackerman test. > > Does anybody know the stack "overhead" for method invokation in Ruby? If > vruz gets (only) 1891 levels on a linux box, and typical default stack > size limit is 1 MB, then I calculate a little over 500 bytes for each > level of recursion, but the stack size limit is just a guess. >