![Texas Instruments TMS320C2x User Manual Download Page 39](http://html1.mh-extra.com/html/texas-instruments/tms320c2x/tms320c2x_user-manual_1097073039.webp)
Changing the Compiler’s Behavior With Options
2-17
C Compiler Description
2.3.4 Changing How the Shell Program Interprets and Names Extensions (
−
ea and
−
eo Options)
You can use options to change how the shell program interprets filename ex-
tensions and names the extensions of the files that it creates. The
−
ea and
−
eo
options must precede the filenames they apply to on the command line. You
can use wildcard specifications with these options. An extension can be up to
nine characters in length. Select the appropriate option for the type of exten-
sion you want to specify:
−
ea[
.
]
new extension
for an assembly language file
−
eo[
.
]
new extension
for an object file
The following example assembles the file fit.rrr and creates an object file
named fit.o:
dspcl −ea .rrr −eo .o fit.rrr
The period (.) in the extension and the space between the option and the
extension are optional. You can also write the example above as:
dspcl −earrr −eoo fit.rrr
2.3.5 Specifying Directories
By default, the shell program places the object, assembly, and temporary files
that it creates into the current directory. If you want the shell program to place
these files in different directories, use the following options:
−
fr
directory
Specifies a directory for object files. To specify an object file direc-
tory, type the directory’s pathname on the command line after the
−
fr option:
dspcl −fr d:\object
−
fs
directory
Specifies a directory for assembly files. To specify an assembly file
directory, type the directory’s pathname on the command line after
the
−
fs option:
dspcl −fs d:\assembly
−
ft
directory
Specifies a directory for temporary intermediate files. The
−
ft op-
tion overrides the TMP environment variable. (For more informa-
tion, see section 2.4.2,
Specifying a Temporary File Directory
(TMP)
, on page 2-22.) To specify a temporary directory, type the
directory’s pathname on the command line after the
−
ft option:
dspcl −ft c:\temp
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...