int pm *x;
int dm *y;
int dm a;
x = y;
/* Compiler will flag error */
x = &a;
/* Compiler will flag error */
Memory Keywords and Function Declarations/Pointers
Functions always reside in program memory. Pointers to functions always
point to
. The following listing shows some example function declara-
PM
tions with pointers.
/* Dual Memory Support Keyword Function Declaration (With Point-
ers) Syntax Examples */
int * y();
int pm * y();
int dm * y();
int * pm * y(); /* function y resides in */
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
/* function y resides in */
/* pm and returns a
/* pointer to an integer */
/* which resides in dm
/* function y resides in */
/* pm and returns a
/* pointer to an integer */
/* which resides in pm
/* function y resides in */
/* pm and returns a
/* pointer to an integer */
/* which resides in dm
/* pm and returns a
/* pointer to a pointer
/* residing in pm that
/* points to an integer
/* which resides in dm
Compiler
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
1-81
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers