Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watnot.UUCP Path: utzoo!watmath!watnot!cgoudeseune From: cgoudeseune@watnot.UUCP (center of gravity) Newsgroups: net.micro.atari16 Subject: recursion in megamax C Message-ID: <12066@watnot.UUCP> Date: Fri, 10-Oct-86 09:57:45 EDT Article-I.D.: watnot.12066 Posted: Fri Oct 10 09:57:45 1986 Date-Received: Sat, 11-Oct-86 06:22:48 EDT References: <36100001@pbinfo.UUCP> Reply-To: cgoudeseune@watnot.UUCP (center of gravity) Organization: U of Waterloo, Ontario Lines: 18 Summary: [] I've ported a C program to draw Julia sets (skins of fractal dragons) from a vax here at U of W to my 1040st. It uses recursion, and on the vax this goes about 500 to 3000 levels deep, depending on what values i feed to the program. Unfortunately, when i moved it to my ST, it died after about 170 nested recursive calls. Further experimentation indicated that only about 7800 bytes is available for local variables, parameters, and return addresses on the stack from megamax C. The manual claims that if you want more stack space, you can modify the STACKSIZE constant in \megamax\init.c; I changed it to 64000 bytes and a few other values, but to no avail. Help! Does anyone out there know how to make the stack as big as you want? It seems to me that some other code internal to megamax didn't realize i'd changed STACKSIZE from the original 8K, if that's any help. Thanks in advance, Camille.