Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!rochester!cornell!batcomputer!braner
From: braner@batcomputer.tn.cornell.edu (braner)
Newsgroups: comp.sys.atari.st
Subject: Re: Seeking C compiler recommendations
Message-ID: <1977@batcomputer.tn.cornell.edu>
Date: Fri, 9-Jan-87 12:28:20 EST
Article-I.D.: batcompu.1977
Posted: Fri Jan  9 12:28:20 1987
Date-Received: Sat, 10-Jan-87 06:11:39 EST
References: <1277@kontron.UUCP>
Reply-To: braner@batcomputer.UUCP (braner)
Organization: Theory Center, Cornell University, Ithaca NY
Lines: 10
Summary: Beware of stack overflow

[]

I had the same problem using Megamax C on the ST.  It is really a simple
problem, turns out:  You're trying to put too much stuff (big arrays) in
automatic variables (local to main()?), and you overflow the stack (which
is where those are stored.)  Solution: either increase the stack space
alloted in the program startup (see your compiler's instructions), or
put your arrays in global or static variables, or in malloc()ed space.

- Moshe Braner