
Changing the Compiler’s Behavior With Options
2-16
2.3.2 Specifying Filenames
The input files that you specify on the command line can be C source files,
assembly source files, or object files. The shell uses filename extensions to
determine the file type.
Extension
File Type
.
c or none (.c is assumed)
C source
.asm, .abs, or .s* (extension begins with s)
Assembly source
.obj
Object
Files without extensions are assumed to be C source files. The conventions
for filename extensions allow you to compile C files and optimize and
assemble assembly files with a single command.
For information about how you can alter the way that the shell interprets indi-
vidual filenames, see section 2.3.3
on page 2-16. For information about how
you can alter the way that the shell interprets and names the extensions of as-
sembly source and object files, see section 2.3.5 on page 2-17.
You can use wildcard characters to compile or assemble multiple files. Wild-
card specifications vary by system; use the appropriate form listed in your op-
erating system manual. For example, to compile all of the C files in a directory,
enter the following:
dspcl *.c
2.3.3 Changing How the Shell Program Interprets Filenames (
−
fa,
−
fc, and
−
fo
Options)
You can use options to change how the shell interprets your filenames. If the
extensions that you use are different from those recognized by the shell, you
can use the
−
fa,
−
fc, and
−
fo options to specify the type of file. You can insert
an optional space between the option and the filename. Select the appropriate
option for the type of file you want to specify:
−
fa
filename
for an assembly language source file
−
fc
filename
for a C source file
−
fo
filename
for an object file
For example, if you have a C source file called file.s and an assembly language
source file called assy, use the
−
fa and
−
fc options to force the correct
interpretation:
dspcl −fc file.s −fa assy
You cannot use the
−
fa,
−
fc, and
−
fo options with wildcard specifications.
Содержание TMS320C2x
Страница 8: ...viii...
Страница 69: ...2 47 C Compiler Description...
Страница 159: ...6 36...
Страница 226: ...8 6...
Страница 250: ...Index Index 14 Z z shell option 2 2 2 4 2 14 overriding with c option 4 5 overriding with n option 2 13...