Microsoft C - Heap space question

Lloyd Kremer kremer at cs.odu.edu
Sat Sep 9 01:38:19 AEST 1989



In article <3631 at cbnewsh.ATT.COM> jmn at 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!



More information about the Comp.lang.c mailing list