EasyManuals Logo
Home>Texas Instruments>Computer Hardware>TMS34010

Texas Instruments TMS34010 User Manual

Texas Instruments TMS34010
128 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #29 background imageLoading...
Page #29 background image
The
TMS34010
C Language
4.1
Identifiers
and
Keywords
K&R
2.2
K&R
2.3
TMS34010
C treats the first
31
characters
of
an
identifier
as
significant,
as
compared
with
eight
in
K&R
C.
This also applies
to
external names. Case
is
significant: uppercase characters are different from lowercase characters
for
identifier names in all TMS3401 0 C tools.
Three keywords exist
in
addition.
to
the list in K&R. The
new
keywords
are:
asm, void, and enum.
4.2
Constants
K&R
2.4.1
K&R
2.4.3
Added
type
K&R
2.5
All integer constants
are
of
type
int
(signed,
32-bit
length). Invalid digits in
constants
(i.e., 8 and 9 in octal) cause a warning message.
The escape code
\v
is
recognized in character and string constants
as
a vertical
tab character
(ASCII code
11).
in addition to the escape codes listed in K&R.
Enumeration constants
are
a special type
of
integer constant
not
described
by
K&R. An identifier declared
as
an
enumerator can be used wherever
an
integer
constant can be used.
See
Section 4.7.4, page
4-6,
for
more information.
The maximum length
of
any string constant
is
255
bytes in
TMS34010
C,
where the length
is
unlimited in K&R
C.
All characters after
an
embedded null byte in a string constant are ignored; in
other
words, the first null byte terminates the string. However, this does
not
apply
to
strings used
to
initialize arrays
of
characters.
Identical string constants
are
stored
as
a single string,
not
as
separate strings
as
in K&R
C.
However, this does
not
apply
to
strings used
for
any
auto-ini-
tialization
of
arrays
of
characters.
4.3
TM
834010
C
Data
Types
K&R4.0
4-2
The char data type
is
signed. A separate type, unsigned char,
is
supported.
Long
and
int
are
functionally equivalent types, and either can be declared
unsigned. The properties
of
enum types
are
identical
to
those
of
unsigned
into
There
is
an
additional type called void,
which.is
used
to
declare a
function
that
returns no value. The compiler checks that functions declared
as
void
do
not
return values and that they
are
not
used
in
expressions. Functions
are
the
only type
of
objects
that
may be declared void.

Table of Contents

Other manuals for Texas Instruments TMS34010

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS34010 and is the answer not in the manual?

Texas Instruments TMS34010 Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS34010
CategoryComputer Hardware
LanguageEnglish

Related product manuals