
Data Types
5-5
TMS320C2x/C2xx/C5x C Language
Table 5
−
1. TMS320C2x/C2xx/C5x C Data Types
Range
Type
Size
Representation
Minimum
Maximum
char, signed char
16 bits
ASCII
−
32768
32767
unsigned char
16 bits
ASCII
0
65535
short
16 bits
2s complement
−
32768
32767
unsigned short
16 bits
binary
0
65535
int, signed int
16 bits
2s complement
−
32768
32767
unsigned int
16 bits
binary
0
65535
long, signed long
32 bits
2s complement
−
2147 483 648
2147 483 647
unsigned long
32 bits
binary
0
4294 967 295
enum
16 bits
2s complement
−
32768
32767
float
32 bits
TMS320C2x/C2xx/C5x
1.19209 290e
−
38
3.4028 235e+38
double
32 bits
TMS320C2x/C2xx/C5x
1.19209 290e
−
38
3.4028 235e+38
long double
32 bits
TMS320C2x/C2xx/C5x
1.19209 290e
−
38
3.4028 235e+38
pointers
16 bits
binary
0
0xFFFF
Many of the range values are available as standard macros in the header file
limits.h, which is supplied with the compiler. For more information, see section
7.2.4,
Limits (float.h and limits.h)
Note: TMS320C2x/C2xx/C5x Byte Is 16 Bits
By ANSI C definition, the sizeof operator yields the number of
bytes
required
to store an object. ANSI further stipulates that when sizeof is applied to char,
the result is 1. Since the TMS320C2x/C2xx/C5x char is 16 bits (to make it
separately addressable), a byte is also 16 bits. This yields results you may
not expect; for example, sizeof (int) = = 1 (
not
2). TMS320C2x/C2xx/C5x
bytes and words are equivalent (16 bits).
Содержание TMS320C2x
Страница 8: ...viii...
Страница 69: ...2 47 C Compiler Description...
Страница 159: ...6 36...
Страница 226: ...8 6...
Страница 250: ...Index Index 14 Z z shell option 2 2 2 4 2 14 overriding with c option 4 5 overriding with n option 2 13...