Compiler Command-Line Interface
Data Type Sizes
The sizes of intrinsic C/C++ data types are selected by Analog Devices so
that normal C/C++ programs execute with hardware-native data types and
therefore at high speed.
Table 1-6
shows the size used for each of the intrinsic C/C++ data types
Table 1-6. Data Type Sizes for ADSP-219x Processors
Type
char
u
nsigned char
int
unsigned int
short
unsigned short
long
unsigned long
float
double
pointer
function pointer
fract16
fract32
On any platform the basic type
type
is 32 bits, as is
long
1-54
Bit Size
8 bits signed
8 bits unsigned
16 bits signed
16 bits unsigned
16 bits signed
16 bits unsigned
32 bits signed
32 bits unsigned
32 bits float
32 bits float
16 bits
32 bits
16 bits fractional
32 bits fractional
will be the native word size. The data
int
. A pointer is the same size as an
float
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
returns
sizeof
1
1
1
1
1
1
2
2
2
2
1
2
1
2
.
int
for ADSP-219x DSPs
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers