Memory Keywords And Function Declarations/Pointers - Analog Devices VISUALDSP++ 3.5 Manual

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Questions and answers

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents