Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!usc!ucsd!ucbvax!hplabs!hpda!hpcupt1!swh From: swh@hpcupt1.HP.COM (Steve Harrold) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: Increase run-time stack size Message-ID: <100010006@hpcupt1.HP.COM> Date: 27 Jun 90 15:20:33 GMT References: <32559@ut-emx.UUCP> Organization: Hewlett Packard, Cupertino Lines: 12 >>> Please give me some hints to avoid stack overflow. As I recall, >>> one can put a stack size in main() file or use switches to specify >>> stack size during linking. ----------------- Things that seem to go into the stack with Microsoft C programs include the environment table (in some memory models); thus you might want to reduce the number of superfluous variables in the DOS environment. Also check into the EXEMOD program (it comes with Microsoft C and other MS products). You can use it to alter the size of the stack of an already existing .EXE file.