Link Method Causes Unexpected Increase in .EXE File SizeLast reviewed: July 17, 1997Article ID: Q58689 |
3.x 4.x 5.0x 5.1x 5.2x 5.3x 5.50 5.60 | 5.0x 5.10 5.11 5.13 5.15
MS-DOS | OS/2kbtool The information in this article applies to:
The method used to link a program determines the size of the resulting executable file. For example, command line one below produces an executable file much larger than that produced by command line two:
In command line one, the library name is listed in the same field as the object modules. A library in the object module filed is referred to as a "load library" instead of a "regular library." LINK automatically includes every module in a load library into the executable file; it does not search for unresolved external references first. A load library is useful if each module is required by the resulting application. By using a load library, you are not required to enter the name of each module on the LINK command line. Command line two instructs the linker to include only the object modules from the library that are necessary to resolve any external references. For more information on this process, refer to Article 20 in the "MS-DOS Encyclopedia" (Microsoft Press), particularly pages 701-702. Note, however, that this book is currently out of print.
|
Additional reference words: kbinf 1.08 1.10 2.00 2.01 2.10 2.40 2.41 2.44
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |