home *** CD-ROM | disk | FTP | other *** search
- COMMAND: LINK
-
- FUNCTION: Combines separately produced object modules into a relocatable
- load module.
-
- FORMAT: LINK objlist,runfile,mapfile,liblist[parameters]...;
-
- TYPE: DOS external command
-
- REMARKS: objlist is a list of names of object modules in the current
- directory or on the default drive. Names are separated by spaces
- or by + signs and the default file extension is .OBJ.
- runfile is the name of the relocatable load module file to be made in
- the current directory. The default extension is .EXE, and the
- default file name is the first object module file name with extension
- .EXE if no runfile is specified.
- mapfile is name of the linker map file in the current directory,
- where the default extension is .MAP. If omitted, the reserved
- filename NUL is used to indicate that no linker map is produced.
- liblist is a list of filespecs of library modules to be linked
- separated by spaces or by + signs. The filespecs may include drive
- and path specifications. If omitted, liblist defaults to the library
- provided with the compiler package.
- parameters can be:
- /D to load all data defined to be in DGROUP at the high end of the
- group (default is the low end).
- /H places the run image as high as possible in memory without
- overlaying the transient portion of COMMAND.COM.
- /L includes line numbers and addresses of source statements in the
- input modules in the list file.
- /M lists all global symbols defined in the input modules, along with
- their value and ofset location at the end of the linker map.
- /P pauses execution before the run file is created to allow you to
- swap diskettes first.
- /S:size sets the stack to occupy size bytes of memory, where size can
- be up to 65536 bytes. If omitted, the stack size is set by the
- compiler.
- /X adjusts the total number of segments that an .EXE file can
- contain.
- /O is used to link object modules created by IBM Pascal 1.0 or by IBM
- Fortran 1.0.
- Multiple elements of long file lists can be separated by + signs to
- continue the LINK statement over more than one display line.
- LINK with no arguments produces a series of prompts that ask for
- entry of the required parameters. The statement
- LINK @[d:][path]filename[.ext] defines an automatic response file
- that LINK will use in place of the user prompts. If LINK runs out of
- memory it will create a temporary file VM.TMP to handle the overflow.