LINK's Output
◄Up► ◄Contents► ◄Index► ◄Back►
─────LINK's Output──────────────────────────────────────────────────────────
Main Output File
LINK's main output file is either a program that runs under DOS
(called a DOS executable file or application) or a program or DLL
that runs under Windows or OS/2 (called a segmented executable
file). LINK produces:
■ An .EXE or .COM file that runs under DOS (or in the OS/2
compatibility box) if you do not specify an import library
or module-definition file and the object files and libraries
do not contain export definitions.
■ An application that runs under OS/2 or Windows if you specify
an import library or a module-definition file that does not
contain a LIBRARY statement or if any of the object files
contains an exported definition.
See: ◄Import Libraries►
◄Linking for OS/2 and Windows►
◄Module-Definition Files►
■ An OS/2 or Windows dynamic-link library (DLL) if you specify
a module-definition file containing a LIBRARY statement.
See: ◄Dynamic-Link Libraries►
NOTE: A standard library (.LIB file) is produced by the LIB
utility and is not the same as a DLL.
See: ◄LIB► (in LIB Help)
Map File
LINK can create a map file, which lists the segments in the
executable file. The /MAP option adds public symbols to the map
file, and the /LINE option adds line numbers.
See: ◄<mapfile> Field►
◄/LINE Option►
◄/MAP Option►
Other Files
The following options cause LINK to produce other output files:
■ The /INCR option creates .ILK and .SYM files for incremental
linking with ILINK.
■ The /TINY option creates a .COM file instead of an .EXE file.
■ The combination of /CO and /TINY puts debugging information
into a .DBG file.
■ The /Q option creates a Quick library.
See: ◄/CO Option►
◄/INCR Option►
◄/Q Option►
◄/TINY Option►
◄What Is ILINK?► (in ILINK Help)
-♦-