C/C++ Compiler Language Extensions
int near * near nn1;
resides in near memory and points to a near memory integer */
int * nn2;
resides in near memory and points to a near memory integer */
int far * near nf1;
resides in near memory and points to a far memory integer */
int far * nf2;
resides in near memory and points to a far memory integer */
section("some_far_section")
int far * far ff;
resides in far memory and points to a far memory integer */
The "
" qualifier is a default and may be omitted when declaring types
near
for variable which will normally reside in internal memory. The compiler
will treat accesses to "
qualifier had not been used.
The "
" qualifier will normally be used in conjunction with the section
far
placement specifier on static or global scope variables. Use of "
automatic declarations will result in a compiler warning indication that
the "
" qualifier is unnecessary.
far
The compiler will issue an error if both "
conflicting way.
Sizes of Far and Near Qualified Types
The size of a
"far"
24 bits, cannot be stored on the data stack). The size of "
data is as normal given that "
will return 1 for
#include <assert.h>
1-100
/* declares nn1 to be a pointer which
/* declares nn2 to be a pointer which
/* declares nf1 to be a pointer which
/* declares nf2 to be a pointer which
/* declares ff to be a pointer which
" qualified variable types exactly as if the "
near
pointer is 32 bits (the actual address width required,
" will be ignored. The
near
pointers and 2 for
near
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
" and "
" are used in a
near
far
near
sizeof
pointers. For example,
far
for ADSP-219x DSPs
"
near
" with
far
" qualified
operator
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers