TMS34010
C
Language
-
Conversions/Expressions
K&R 14.4
Pointers and integers
(or
longs) may be freely converted, since each occupies
32
bits
of
storage. Pointers to one data type can also be converted to pointers
to
another data
type,since
the TMS3401 0 has no alignment restrictions and
all pointers are the same size.
4.5
Expressions
Added
type
-
Void
Expressions
A
function
of
type void has no value (returns no value) and cannot be called
in any
way
except
as
a separate statement
or
as
the left operand
of
the comma
operator. Functions can be declared or typecast
as
void.
K&R
7.1-
Primary
Expressions
In TMS3401 0
C,
functions can return structures or unions.
The restriction
of
three array dimensions does
not
apply
to
expressions, be-
cause [ ] is treated
as
an operator.
K&R 7.2 -
Unary
Operators
in
Expressions
The value yielded by the sizeD! operator is calculated
as
the total number
of
bits used
to
store the object divided
by
eight. (Eight
is
the number
of
bits in
a character.)
Sizeo!
can be legally applied
to
enum objects and bit fields:
if
the result is
not
an
integer, it
is
rounded
up
to
the nearest integer.
4-7