User`s guide
ELF Linker and Command Language
DSP56800E Command-Line Tools
309Targeting MC56F83xx/DSP5685x Controllers
Also, available are environment variables. These are used to provide path information
for includes or libraries, and to specify which libraries are to be included. You can
specify the variables listed in Table 10.3
.
These are the target-specific variables, and will only work with the DSP56800E tools.
The generic variables MWCIncludes, MWLibraries, MWLibraryFiles, and
MWAsmIncludes apply to all target tools on your system (such as Windows). If you
only have the DSP56800E tools installed, then you may use the generic variables if
you prefer.
Response File
In addition to specifying commands in the argument list, you may also specify a
“response file”. A response file’s filename begins with an ‘@’ (for example, @file),
and the contents of the response file are commands to be inserted into the argument
list. The response file supports standard UNIX-style comments. For example, the
response file @file, contain the following:
# Response file @file
-o out.elf # change output file name to ‘out.elf’
-g # generate debugging symbols
The above response file can used in a command such as:
mwcc56800e @file main.c
It would be the same as using the following command:
mwcc56800e –o out.elf –g main.c
Table 10.3 Environment Variables
Tool Library Description
Compiler MWC56800EIncludes Similar to Access Paths panel; separate
paths with ‘;’ and prefix a path with ‘+’ to
specify a recursive path
Linker MW56800ELibraries
MW56800ELibraryFiles
Similar to MWC56800EIncludes
List of library names to link with project;
separate with ‘;’
Assembler MWAsm56800EIncludes (similar to MWC56800EIncludes)