Command line mode
In this mode all of the object files and SLINK commands are placed on the
SLINK [files] [options] [commandfile]
Object files, script files and options may be freely intermixed. There may be
more than one command file.
1. Script files
Script files contain commands and/or object files.
Interactive style script files are prefixed by a "$" or have no
prefix. Command line script files are prefixed by an "@".
2. Interactive style script files
These contain the same commands as may be used in interactive mode and are
executed in the order that they appear in the file.
(no filename extension) does not exist then
will be assumed a interactive style script file.
This form is explicitly a interactive style script file.
3. Command line style script files
and command line arguments
These may contain the following commands:
-help alias for
Commands have the same requirements and meaning as the corresponding interactive
command, may be in upper or lower case and may have either a "/"
or a "�" prefix.
Commands are executed first and so may appear anywhere and in any order. Object
files are scanned after all of the commands have been scanned.
Object file names are specified with the .OBJ extension and, unlike interactive
mode no extension is automatically appended. However, object files are loaded
in the order in which they appear.
command is unnecessary since an executable will be automatically written after
all commands have been processed and all object files have been scanned. For
myprog.obj -map: @others.inf -file:test @defltlib.inf
This will link the object file myprog.obj with any object files, libraries, or
DLLs listed in
defltlib.inf. A map file
will be produced (name taken from the first loaded object) and executable
(automatic file name extension) written. For example:
is scanned and then
is scanned. An executable named
will be written.
It is generally not advisable to mix interactive and command line style script
files due to their different behaviour. If more than one interactive style
script file is used remember that commands are executed in the order in which