The Slim Linker

The linker combines one or more object files produced by the compiler into an executable. The linker is invoked implicity by the compiler, or explicitly from the command line, and must be given the name of the main module of the program, as its only command line parameter. For example:
  sli xyz
will invoke the linker from the command line and instruct it to produce an executable, corresponding the program whose main module is called xyz, and bearing the same name as the main module.

The linker establishes which object files to link together, by reading the linker parameter file. This file must have the same name as the main module, but bear either the extension ".lnk" or the extension ".lkr". When the compiler compiles a module which has an associated linker parameter file bearing the ".lnk" extension, it automatically invokes the linker to produce an executable. An alternative to using this convention is to use the interpreter.


Herman Venter

This is Slim documentation as snarfed on 27 May 1999 by dB.