Smart linking of data segments

Richard GILLMANN richgi at microsoft.UUCP
Wed Jun 6 03:29:26 AEST 1990


In article <1205 at tuewsd.win.tue.nl> wsineel at lso.win.tue.nl (e.vriezekolk) writes:
>I have a small program which uses a number of 64Kb segements
>for data storage. I am using MASM 4.0 and some linkers.
>The problem is that my .exe includes all these segments,
>though their contents are meaningless at load time.
>
>How can I convince MASM/link that she doesn't have to include
>the data segements?

Probably what you want is to allocate the memory dynamically at run
time, by asking DOS for memory blocks.  But you can do what you
are currently doing and EXEPACK the resulting EXE.  EXEPACK will
run encode the EXE and eliminate the redundant info in the EXE file.
EXEPACK is a linker option in recent MS linkers and a separate program
shipped with older language products.



More information about the Comp.sys.att mailing list