How to change the stack size using ulimit or per process on Mac OS X for a C or Ruby program?
Apparently there is a hard limit on the stack size for mac os x, taken from http://lists.apple.com/archives/scitech/2004/Oct/msg00124.html granted this is quite old, and Im not sure if its still true anymore, but to set it simply call ulimit -s hard, its 65532. or about 65 megs. I did some tests on snow leopard, 10.6.8, and … Read more