Increasing Stack Size

You should not have a problem with only 64k of stack space. You get errors, not freezes it's probably because your algorithm is going wild!

But you can increase the stack size for debugging purposes. Here are the directions on a Mac, for Codewarrior IDE 4.0 (other versions and compilers should be similar). From the Edit pull down menu select PPC Std C++ Console Settings... The select PPC Target, and change Stack Size (k) to 512.

If your error persists, you have some recursion problems. It the problem goes away you need to tidy up your algorithm so that it uses less stack space.