Boolean Type Support Keywords (Bool, True, False); Pointer Class Support Keyword (Restrict) - 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
Applying
section()
that the compiler can place in the named section.
Apply
section()
(they are explicitly
The example shows the declaration of a
the section called
static section("bingo") int x;

Boolean Type Support Keywords (bool, true, false)

The
,
bool
true
port the C++ Boolean type. The
type. There are two built-in constants of this type:
converting a numeric or pointer value to
; a nonzero value becomes
false
by promotion, taking
int
pointer value is automatically converted to
These keywords behave more or less as if the declaration that follows had
appeared at the beginning of the file, except that assigning a nonzero inte-
ger to a
type always causes it to take on the value
bool
typedef enum { false, true } bool;

Pointer Class Support Keyword (restrict)

The
restrict
pointer features. The use of
pointer and specifies that the pointer provides exclusive initial access to
the object to which it points. More simply,
identify that a pointer does not create an alias. Also, two different
restricted pointers can not designate the same object and therefore are not
1-84
is only meaningful when the data item is something
only to top-level, named objects that have static duration
or are given as external-object definitions.
static)
.
bingo
, and
keywords are extensions to ANSI C that sup-
false
true
to one and
true
operator keyword is an extension that supports restricted
restrict
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
variable that is placed in
static
keyword is a unique signed integral
bool
true
, a zero value becomes
bool
. A
value may be converted to
bool
to zero. A numeric or
false
when needed.
bool
is limited to the declaration of a
restrict
and
. When
false
.
true
is a way that you can
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

Subscribe to Our Youtube Channel

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents