Invoking the Tools Individually
2-43
C Compiler Description
To invoke the optimizer, enter:
dspopt
[
input file
[
output file
]]
[
options
]
dspopt
is the command that invokes the optimizer.
input file
names the intermediate file produced by the parser. The
optimizer assumes that the extension is
.if
. If you do not speci-
fy an input file, the optimizer prompts you for one.
output file
names the intermediate file that the optimizer creates. If you
do not supply a filename for the output file, the optimizer uses
the input filename with the extension
.opt
.
options
affect how the the optimizer processes the input file. The
options that you use in stand-alone optimization are the same
as those used for dspcl. Table 2
6 shows the optimizer
options, the dspcl shell options, and the corresponding func-
tions. Section 3.1,
Using the C Compiler Optimizer
, on page
provides a detailed list of the optimizations performed at
each level.
Table 2
−
6. Optimizer Options and dspcl Options
dspopt Option
dspcl Option Function
−
a
−
ma
Assume variables are aliased
−
b
−
mb
Disable the noninterruptible RPTK instruction for
moving structures
−
g
register
−
r
register
Reserve global register
†
−
h
size
−
ol
size
Control assumptions about library function calls
−
i
n
−
oi
n
Set automatic inlining size threshold (
−
o3 only)
−
j
−
oe
Assume no functions call, or are called by, inter-
rupt functions
−
k
−
pk
Allow K&R compatibility
−
n
n
−
on
n
Generate optimization information file (
−
o3 only)
−
o0
−
o0
Optimize at level 0; register optimization
−
o1
−
o1
Optimize at level 1; + local optimization
†
The
−
g
option tells the code generator that the register named is reserved for global use. See sec-
tion 5.6,
Creating Global Register Variables
, on page 5-10, for more information.
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...