Article View: comp.os.msdos.programmer
Article #6922Re: Help! Microsoft C program size problem!
From: Keath Milligan
Date: Fri, 31 May 1991 23:41
Date: Fri, 31 May 1991 23:41
11 lines
1011 bytes
1011 bytes
Concerning your size problem: Even if your program is large model, LINK will by default allocate space for a near heap. This near heap will be 64k minus the total size of all your near-data-segment items. This is probably where that wasted 47k is coming from. In addition to that, LINK will also (by default) construct the .EXE so that it will allocate all available main memory when it runs. Try using "/CP:1" this will cause LINK to not reserve space for a near heap and construct the .EXE so that it will only allocate as much memory as it needs when it runs.
Technical Details
Message-ID:
<1991May31.234150.739@wixer.helps.cs.utexas.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helps!wixer!reaperReferences:
<1991May30.184120.11980@njitgw.njit.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helps!wixer!reaper From: reaper@wixer.helps.cs.utexas.edu (Keath Milligan) Newsgroups: comp.os.msdos.programmer Subject: Re: Help! Microsoft C program size problem! Message-ID: <1991May31.234150.739@wixer.helps.cs.utexas.edu> Date: 31 May 91 23:41:50 GMT References: <1991May30.184120.11980@njitgw.njit.edu> Organization: Real/Time Communications Lines: 11