aliases. The compiler is free to use the information about restricted point-
ers and aliasing in order to better optimize C or C++ code that uses
pointers.
The restrict keyword is most useful when applied to function parameters
about which the compiler would otherwise have little information.
void fir (short *in,short *c,short *restrict out,int n)
The behavior of a program is undefined if it contains an assignment
between two restricted pointers except for the following cases:
• A function with a restricted pointer parameter may be called with
an argument that is a restricted pointer.
• A function may return the value of a restricted pointer that is local
to the function, and the return value may then be assigned to
another restricted pointer.
If your program uses a restricted pointer in a way that it does not uniquely
refer to storage, then the behavior of the program is undefined.
Variable Length Array Support
The compiler supports variable-length automatic arrays. Unlike other
automatic arrays, variable-length ones are declared with a non-constant
length. This means that the space is allocated when the array is declared,
and deallocated when the brace-level is exited.
The compiler does not allow jumping into the brace-level of the array and
produces a compile time error message if this is attempted. The compiler
does allow breaking or jumping out of the brace-level, and it deallocates
the array when this occurs.
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
Compiler
1-85
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers