Achieving Optimal Performance from C/C++ Source Code
Useful Optimization Switches
Table 2-1
lists the compiler switches useful during the optimization
process.
Table 2-1. C/C++ Compiler Optimization Switches
Switch Name
-const-read-write
on page 1-24
-flags-link -e
on page 1-27
-force-circbuf
on page 1-27
-ipa
on page 1-30
-no-fp-associative
on page 1-34
-O
on page 1-37
-Os
on page 1-37
-Ov num
on page 1-38
-save-temps
on page 1-44
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
Description
Specifies that data accessed via a pointer to
fied elsewhere.
Specifies linker section elimination.
Treats array references of the form
operations.
Turns on inter-procedural optimization. Implies use of
May be used in conjunction with
Does not treat floating-point multiply and addition as an associative.
Enables code optimizations and optimizes the file for speed.
Optimizes the file for size.
Controls speed vs. size optimizations (sliding scale).
Saves intermediate files (for example,
data may be modi-
const
as circular buffer
array[i%n]
.
-O
or -
-Os
Ov.
).
.s
2-37
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?