🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Turbo C stack (making it bigger)

#1627
From: weston t
Date: Fri, 20 Jul 1990 17:12
20 lines
1348 bytes
changing default stack size in turbo 1.5:

 i use turbo 2.0, but i'm assuming it is the same. _stklen is defined
in a module in the appropriate library (cs.lib??) called STKLEN. to
change it i just patched the constant, which in the large model is 
4k (1000 hex, written 0010 in a hex dump). for my large model, i just
changed 0010 to 0020 (8k decimal) with norton's hex editor. you ought
to be able to avoid patching by writing a C program that does nothing
by define stklen (no underline) to be what you want. in either case, you need
to write the name of your compiled or patched STKLEN.obj on the linker
line after the initialization code c0?.obj but before any reference
to the c library (cs/lib or whatever it is). i forgot to mention that
if you want to patch the STKLEN module, you will need to extract it
from the library with the tlib utility.

good luck

weston

weston@ucselx.sdsu.com
Technical Details
Message-ID: <1990Jul20.171212.6970@ucselx.sdsu.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!usc!ucselx!weston
References: <90Jul19.223807edt.20138@me.utoronto.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!usc!ucselx!weston
From: weston@ucselx.sdsu.edu (weston t)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Turbo C stack (making it bigger)
Message-ID: <1990Jul20.171212.6970@ucselx.sdsu.edu>
Date: 20 Jul 90 17:12:12 GMT
References: <90Jul19.223807edt.20138@me.utoronto.ca>
Reply-To: weston@ucselx.sdsu.edu (weston t)
Organization: San Diego State University Philosophy Dept
Lines: 20