home *** CD-ROM | disk | FTP | other *** search
/ The CIA World Factbook 1992 / k3bimage.iso / sel / 04 / 0034 / iso_0116.iso < prev    next >
Encoding:
Text File  |  1991-12-02  |  2.7 KB  |  49 lines

  1. COMMAND:  LINK
  2.  
  3. FUNCTION: Combines separately produced object modules into a relocatable
  4.           load module.
  5.  
  6. FORMAT:   LINK objlist,runfile,mapfile,liblist[parameters]...;
  7.  
  8. TYPE:     DOS external command
  9.  
  10. REMARKS:  objlist is a list of names of object modules in the current
  11.           directory or on the default drive.  Names are separated by spaces
  12.           or by + signs and the default file extension is .OBJ.
  13.           runfile is the name of the relocatable load module file to be made in
  14.           the current directory.  The default extension is .EXE, and the
  15.           default file name is the first object module file name with extension
  16.           .EXE if no runfile is specified.
  17.           mapfile is name of the linker map file in the current directory,
  18.           where the default extension is .MAP.  If omitted, the reserved
  19.           filename NUL is used to indicate that no linker map is produced.
  20.           liblist is a list of filespecs of library modules to be linked
  21.           separated by spaces or by + signs. The filespecs may include drive
  22.           and path specifications.  If omitted, liblist defaults to the library
  23.           provided with the compiler package.
  24.           parameters can be:
  25.           /D to load all data defined to be in DGROUP at the high end of the
  26.           group (default is the low end).
  27.           /H places the run image as high as possible in memory without
  28.           overlaying the transient portion of COMMAND.COM.
  29.           /L includes line numbers and addresses of source statements in the
  30.           input modules in the list file.
  31.           /M lists all global symbols defined in the input modules, along with
  32.           their value and ofset location at the end of the linker map.
  33.           /P pauses execution before the run file is created to allow you to
  34.           swap diskettes first.
  35.           /S:size sets the stack to occupy size bytes of memory, where size can
  36.           be up to 65536 bytes. If omitted, the stack size is set by the
  37.           compiler.
  38.           /X adjusts the total number of segments that an .EXE file can
  39.           contain.
  40.           /O is used to link object modules created by IBM Pascal 1.0 or by IBM
  41.           Fortran 1.0.
  42.           Multiple elements of long file lists can be separated by + signs to
  43.           continue the LINK statement over more than one display line.
  44.           LINK with no arguments produces a series of prompts that ask for
  45.           entry of the required parameters. The statement
  46.           LINK @[d:][path]filename[.ext] defines an automatic response file
  47.           that LINK will use in place of the user prompts. If LINK runs out of
  48.           memory it will create a temporary file VM.TMP to handle the overflow.
  49.