Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Elliott Lee Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Increasing stack size Date: Mon, 06 Jul 1998 10:51:35 -0700 Organization: Cisco Systems Lines: 35 Message-ID: <35A10EA7.72CAF33D@jps.net> References: <359E80E4.50C7@dial.pipex.com> Reply-To: tenchi@jps.net NNTP-Posting-Host: dhcp-m-62-247.cisco.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (Win95; U) I fixed my problem with this permanently with STUBEDIT (in a previous post) but you can do this in your progs with putting this in your code: unsigned _stklen = 1048576; /* need a 1MB stack */ This info came from the source at: http://www.delorie.com/djgpp/v2faq/faq116.html - e! Chris Chadwick wrote: > > Hi > > Im getting a 'stack fault' error when compiling some of > my modules with optimization which, judging by past > posts Ive read, means I need to increase the size of > the compilers stack(?). However, I cant seem to find > these old posts which I seem to remember mentioned > something about setting an environment variable (called > go32 or something, whatever that is) to increase stack size. > Can someone please tell me how to do this again. > > Thanks in advance > > -Chris -- Mata ne, ... ... - e! ::' tenchi@shell.jps.net ':: (Protocol) :: ACiD -/- ACS -/- pHluid -/- Yaroze -/- Nemesis :: (Tenchikun) ::. http://www.jps.net/tenchi .:: ''' '''