Programmering - Assembler - MASM - LINK

Object-files (.obj) created with MASM or with high-level compilers can be linked into executable programs with LINK.

Command line:

LINK [options] objectfiles [,exefile][,mapfile][,libraryfiles][;]
options  
objectfiles (.OBJ assumed)
exefile
mapfile
libraryfiles
;

Examples:

From HELLO.ASM produce HELLO.EXE with debug information for CodeView:
>MASM /ZI hello;
Compile HELLO.ASM > HELLO.OBJ with debug info
>LINK /CO hello;
Link HELLO.OBJ > HELLO.EXE with debug info
 
Create PICTURE.EXE from PICTURE1.OBJ and PICTURE2.OBJ using external procedures in GRAPHICS.LIB (in current directory or in directory defined by LIB= in environment).
>LINK picture1 picture2,,,graphics;