Xref: utzoo comp.os.msdos.programmer:566 alt.msdos.programmer:2051 Path: utzoo!attcan!uunet!mcsun!ukc!axion!planet!prk From: prk@planet.bt.co.uk (Peter Knight) Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer Subject: Re: Stack Size question Message-ID: Date: 20 Aug 90 07:54:45 GMT References: <14298@silica.BBN.COM> Sender: usenet@planet.bt.co.uk (Usenet News Manager) Distribution: comp, alt Organization: RT743, BT Research Labs, Martlesham Heath, Ipswich, UK. Lines: 26 hlison@bbn.com (Herb Lison) writes: >I'm having a problem allocating a larger stack than the default. I've >got a large program, approximately 330 K for the .EXE file. When I >increase the stack size from 2K to 8K with the EXEMOD utility, the >program immediately exits with a stack overflow error (R6000). Running >the program with a smaller stack results in a stack overflow error later >on. I've tried using overlays, but this doesn't seem to make any >difference. >Anyone have any ideas on what do here? There's not much more code that >I can hack away and I'm not going to be able to use extended memory. >Thanks in advance. >Herb Lison You do not say which compiler and linker you are using, but for increasing the stack size using of Microsoft compiled code, eg C v5.1, you can use the link option /ST:XXXX where XXXX is the (hex) size of your desired stack. If exemod doesn't work, it is likely that the version you are using is not compatible with the compiler and linker that you are using. Peter Knight BT Research #include