Invoking the Compiler Shell
2-4
2.2 Invoking the Compiler Shell
To invoke the compiler shell, enter:
dspcl
[
options
]
filenames
[
−
z
]
[
linker options
]
[
object files
]]
dspcl
is the command that runs the compiler and the assembler.
options
affect the way the shell processes input files.
filenames
are one or more C source files, assembly source files, or
object files.
−
z
is the option that runs the linker. See Chapter 4,
Linking C
Code,
for more information about invoking the linker.
linker options
control the linking process.
object files
name the object files that the compiler creates.
The
−
z option and its associated information (linker options and object files)
must follow all filenames and compiler options on the command line. You can
specify all other options (except linker options) and filenames in any order on
the command line. For example, if you wanted to compile two files named
symtab.c and file.c, assemble a third file named seek.asm, and suppress
progress messages (
−
q), you enter:
dspcl −q symtab file seek.asm
As dspcl encounters each source file, it prints the C filenames in square
brackets ( [ ] ) and assembly language filenames in angle brackets ( < > ). This
example uses the
−
q option to suppress the additional progress information
that dspcl produces. Entering the command above produces these mes-
sages:
[symtab]
[file]
<seek.asm>
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...