Article View: comp.sys.atari.st
Article #24370Re: Seeking C compiler recommendations
From: braner
Date: Fri, 09 Jan 1987 17:28
Date: Fri, 09 Jan 1987 17:28
10 lines
1084 bytes
1084 bytes
[] 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
Technical Details
Message-ID:
<1977@batcomputer.tn.cornell.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rochester!cornell!batcomputer!branerReferences:
<1277@kontron.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!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