C/C++ and Assembly Language Interface
C++ Programming Examples
This section shows examples of the features specific to C++. These exam-
ples are:
•
"Using Fract Type Support" on page 1-176
•
"Using Complex Number Support" on page 1-177
By default, the
C++ mode, use the corresponding option on the command line, or select
the option in the Project Options dialog box in the VisualDSP++
environment.
For example, the following command line
cc219x -c++ source.cpp -proc ADSP-2191
runs
with:
cc219x
-c++
Specifies that the following source file is written in ANSI/ISO
standard C++ extended with the Analog Devices keywords.
source.cpp
Specifies the source file for your program.
-proc ADSP-2191
Specifies that the compiler should produce code suitable for the
ADSP-2191 DSP.
Using Fract Type Support
Listing 1-1 on page 1-177
type and associated arithmetic operators, such as
fract
product algorithm is expressed using the standard arithmetic operators.
The code demonstrates how two variable-length arrays are initialized with
fractional literals.
1-176
compiler runs in C mode. To run the compiler in
cc219x
demonstrates the compiler support for the
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
and
. The dot
+
*
for ADSP-219x DSPs
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers