home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / beehive / zcat / m80-l80.lbr / L80.HQP / L80.HLP
Text File  |  1991-01-30  |  4KB  |  107 lines

  1. Linker for Microsoft/Cromemco Products
  2. Command Line
  3. Switches
  4. Error Messages
  5. :LINK:
  6.         The linker is used to link assembled or compiled program modules
  7. together, load them into memory, and begin execution if desired.  The
  8. program modules can come from different sources  Some of the sources are
  9.           BASCOM
  10.           COBOL
  11.           FORTRAN
  12.           ASSEMBLER
  13.           RPG
  14.           
  15. :LINK:
  16.     The format for the invokation of Linker is
  17.  
  18.  
  19.    LINK <filename1.ext/s,filename2.ext/s,....>
  20.  
  21.     where   filename stands for Disk drive letter followed by a colon
  22.                      followed by the absolute file name
  23.  
  24.             ext  is used if the module extension is different than .REL
  25.             
  26.             /s   stands for switch options.
  27.   EXAMPLE of a link
  28.  
  29.      LINK MAIN,FORLIB/S,MAIN/N/G
  30.  
  31.       The first MAIN is the name of the module from the fortran compiler
  32.       The FORLIB/S  is the library of standard fortran routines that will
  33.            be selected
  34.       The MAIN/N/G  means to name the .COM file MAIN and to save it on
  35.            current disk, then execute MAIN automatically.
  36.  
  37. :LINK:
  38.                           SWITCH OPTIONS
  39.  
  40.     Each switch option is preceded by a /
  41.  
  42.     D:address   Set start address of data area to "address".
  43.  
  44.     E ....  Exit to operating system
  45.  
  46.     E:name  like E, but set start address of linked program to "name".
  47.  
  48.     G ....  Go   (start execution)
  49.           Start execution of the program as soon as the current command
  50.           line has been interpreted.
  51.  
  52.     G:name  like G, but set start address of linked program to "name".
  53.  
  54.     H ....  Hexadecimal Radix (sets input-output radix).
  55.  
  56.     M ....  Map all symbols
  57.           List both all the defined globals and their values and all
  58.           undefined globals followed by an asterisk.
  59.  
  60.     N ....  Save linked program in .COM file with name that immediately
  61.       precedes this switch
  62.  
  63.     N:P...  Like N, but do not save DSEG.
  64.  
  65.     O ....  Octal Radix (sets input-output radix).
  66.  
  67.     P:address  Set start address of code area to "address".
  68.  
  69.     R ....  Reset the linker
  70.           Puts the linker back to its initial state.   the /R is used
  71.           to restart LINK if the wrong file was loaded by mistake.
  72.  
  73.     S ....  Search file
  74.           Search the disk file having the filename immediately preceding
  75.           the /S in the command string, to satisfy any undefined globals.
  76.           This is convenient for having the linker search a library file
  77.           of much-used routines.
  78.  
  79.     U ....  List all undefined globals
  80.           List all undefined globals as soon as the current command line
  81.           has been interpreted and executed.  Link defaults to this 
  82.           switch; therefore it is generally not needed.
  83.  
  84.     X ....  Save ".COM" file (specified by /N) in .HEX format.
  85.  
  86.     Y ....  Save symbols in ".SYM" file for SID/ZSID.  Requires that you
  87.       have set /N  (for file name) and /E (not /G) switches.
  88. :LINK:
  89.                  ERRORS
  90.  
  91.    No start address       a /G is issued but no main program module
  92.                           has been loaded.
  93.  
  94.    Loading error          The file given is not a properly formatted
  95.                           link object file.
  96.  
  97.    Fatal Table Collision  There is not enough memory
  98.  
  99.    Command error          Unrecognizable link command
  100.  
  101.    File not found         Specified file not on specified disk
  102.  
  103.    mult def global        More than one definition of the global name
  104.                           (possibly wrong modules combined)
  105. :LINK:
  106.  ....  List all undefined globals
  107.           List all undefined globals as soon as the current command line