Xref: utzoo comp.sys.ibm.pc:34357 comp.lang.c:21606 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!xanth!kremer From: kremer@cs.odu.edu (Lloyd Kremer) Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: Re: Microsoft C - Heap space question Keywords: heap microsoft-c Message-ID: <9944@xanth.cs.odu.edu> Date: 8 Sep 89 15:38:19 GMT References: <3631@cbnewsh.ATT.COM> Followup-To: comp.sys.ibm.pc Distribution: usa Organization: Old Dominion University, Norfolk, Va. Lines: 23 In article <3631@cbnewsh.ATT.COM> jmn@cbnewsh.ATT.COM (john.b.medamana) writes: >Is it possible to get a separate physical segment (Group?) >for heap? >The default allocation combines stack and heap into a >single 64K segment (DGROUP). I don't believe you can change the contents of DGROUP without producing intermediate assembly code, modifying it, and then using the Microsoft Macro Assembler. But don't expect any other Microsoft programmer's aids to work on the resulting executable. If DGROUP is too crowded, you could reduce stack space (within reason) by using command line linker options, or use the -Gt compiler option to reduce the size threshold at which aggregate objects are sent to far data segments. -- Lloyd Kremer ...!uunet!xanth!kremer Have terminal...will hack!