Path: 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 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.