Table of Contents Previous topic Next topic
LINKER->Running the Linker from the Command Line
In general, you will run the linker from within the Embedded Development Studio. However, the linker can also be run from the command line as described in the following sections.
The Crossware Relocation Linker combines object files to create a single program code file.
The linker can be automatically invoked when the CL command is used. However, the linker can also be run separately with the command line:
LINK [ofiles], [pfile], [mfile], [lfiles] [/options]
where [ofiles] is a list (separated by spaces) of the object files to be linked
[pfile] is the name of the file in which the program code will be placed
[mfile] is the name of the file in which the link map will be placed
[lfiles] is a list (separated by spaces) of the library files which should be searched for unresolved references
[/options] is a list (separated by spaces) of linker options.
A semicolon placed after a file name causes default filenames to be used for the remaining filenames.