Function, Variable And Type Attribute Keyword - 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

C/C++ Compiler Language Extensions
For example,
int N asm("C11045");
tells the compiler to use the label C11045 in the assembly code it gener-
ates wherever it needs to access the source level variable
compiler would use the label
The
keyword can also be used in function declarations but not func-
asm
tion definition. However, a definition preceded by a declaration has the
desired effect.
For example,
extern int f(int, int) asm("func");
int f(int a, int b) {
. . .
}
Function, Variable and Type Attribute Keyword (__attribute__)
The
__attribute__
variables and types, as in these examples.
void func(void) __attribute__ ((section("fred")));
int a __attribute__ ((aligned (8)));
typedef struct {int a[4];} __attribute__((aligned (4))) Q;
The
__attribute__
GCC, can be ported. All attributes accepted by GCC on
accepted. The ones that are actually interpreted by the compiler are
described in the sections of this manual describing the corresponding
pragmas (see
"Pragmas" on page
1-146
.
_N
keyword can be used to specify attributes of functions,
keyword is supported, and therefore code, written for
1-119).
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
. By default the
N
are
ix86
for ADSP-219x DSPs

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