Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!singer From: singer@XN.LL.MIT.EDU (Matthew R. Singer) Newsgroups: comp.sys.ibm.pc Subject: Re: MSC compiler stack overflow Message-ID: <582@xn.LL.MIT.EDU> Date: Mon, 29-Jun-87 11:32:38 EDT Article-I.D.: xn.582 Posted: Mon Jun 29 11:32:38 1987 Date-Received: Tue, 30-Jun-87 05:58:06 EDT References: <4283@ihlpa.ATT.COM> <3540002@hplsdla.HP.COM> Organization: MIT Lincoln Laboratory, Lexington, MA Lines: 19 In-reply-to: ritchie@hplsdla.HP.COM's message of 22 Jun 87 02:32:53 GMT Posting-Front-End: GNU Emacs 18.46.1 of Fri Jun 12 1987 on xn (berkeley-unix) Someone correct me if I'm wrong (99.9% change).... The stack overflow message is confusing. It can occur when: 1) the allocated stack is too small for your stack usage (local variables, recursion...etc) 2) the allocated stack is too big. the size of the stack, plus the default data segment must not exceed 64K. so, you are sol if you need a 64K stack and want to use one of the standard memory models. I have a program that needs a large stack (large arrays that are local and need to be recursive). The only way Ive found to increase the size I can make the stack (via /stack in link or exemod) is to change the parameter which is the size at which MSC will put a data object in its own segment.