🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1940

Re: Stack Size question

#1940
From: Peter Knight
Date: Mon, 20 Aug 1990 07:54
26 lines
1552 bytes
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 <standard\disclaimer.h>
Technical Details
Message-ID: <prk.651138885@aries>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!axion!planet!prk
References: <14298@silica.BBN.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <prk.651138885@aries>
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