lk (3) --- link cross-assembler object files 01/18/83 _U_s_a_g_e lk -(6800 | 8080) { [-(i | l | n)] file } _D_e_s_c_r_i_p_t_i_o_n 'Lk' is used to link together the object code files produced by the 'as6800' and 'as8080' cross-assemblers. It produces a file of the same type as the input files, so the output of 'lk' may itself be linked with other code files. If no arguments are given on the command line then they are taken from standard input. 'Lk' always writes its output to the file "l.out". The first argument selects the machine that the object files have been compiled for: "-6800" refers to the Motorola 6800, while "-8080" indicates the Intel 8080. The remaining options select the mode the linker is running under and the input files that are to be linked. The available modes are: -i INCLUDE This is the default mode. When in this mode, all object segments encountered in the files specified are linked together onto "l.out". -l LIBRARY In this mode, the arguments are taken to be libraries, that is, concatenations of object code files made with 'lib'. Each segment is | examined to see if it satisfies a previously | unresolved external reference, and is linked | in only if it does. -n NAMELIST Any file read in this mode is considered to be a program that can be expected to be resident at the time that the output file is to be run on the target machine. Any entries encountered in this file's symbol table that satisfy a previously unresolved external reference are used to resolve that reference, but the segment itself is not linked in. _E_x_a_m_p_l_e_s lk -6800 tpart1.o tpart2.o -n mux.o -l [libs] _F_i_l_e_s "l.out" for the output code file. _M_e_s_s_a_g_e_s "Usage: lk ..." for invalid argument syntax. Many other error messages, hopefully some of which are self- explanatory. lk (3) - 1 - lk (3) lk (3) --- link cross-assembler object files 01/18/83 _B_u_g_s Locally supported. _S_e_e _A_l_s_o as8080 (3), intel (3), size (3), symbols (3) lk (3) - 2 - lk (3)