User`s guide
ELF Linker and Command Language
DSP56800E Command-Line Tools
310
Targeting MC56F83xx/DSP5685x Controllers
Sample Build Script
This following is a sample of a DOS batch (BAT) file. The sample demonstrates:
• Setting of the environmental variables.
• Using the compiler to compile and link a set of files.
REM *** set GUI compiler path ***
set COMPILER={path to compiler}
REM *** set includes path ***
set MWCIncludes=+%COMPILER%\M56800E Support
set MWLibraries=+%COMPILER%\M56800E Support
set MWLibraryFiles=Runtime 56800E.Lib;MSL C 56800E.lib
REM *** add CLT directory to PATH ***
set
PATH=%PATH%;%COMPILER%\DSP56800E_EABI_Tools\Command_Line_Tools\
REM *** compile options and files ***
set COPTIONS=-O3
set CFILELIST=file1.c file2.c
set LOPTIONS=-m FSTART_ -o output.elf -g
set LCF=linker.cmd
REM *** compile, assemble and link ***
mwcc56800e %COPTIONS% %CFILELIST%
mwasm56800e %AFILELIST%
mwld56800e %LOPTIONS% %LFILELIST% %LCF%
Arguments
General Command-Line Options
----------------------------------------------------------------------
General Command-Line Options
All the options are passed to the linker unless otherwise noted.
Please see '-help usage' for details about the meaning of this help.
----------------------------------------------------------------------
-help [keyword[,...]] # global; for this tool;