4.
The
TMS3401
0 C Language
The C language compiled by the TMS3401 0 C compiler
is
based on the
UNIX
System V C language
as
described by K&R
with
some additions and clarifica-
tions. The most significant differences
are:
•
Addition
of
enum data type.
• Unique member names in structures
not
required.
• Pointers to fields
within
structures
are
allowed.
• Structures and unions may be passed
as
parameters
to
functions, re-
turned by functions, and assigned directly.
This section
is
a comparison
of
the C language compiled by TMS3401 0 C and
the C language described by Kernighan and Ritchie
(K&R
C).
Note:
Only the differences in the
two
forms
of
the C language
are
discussed
here. The standard K&R C
is
followed
except
as
contradicted by this sec-
tion. Section numbers from K&R's
"C
Reference Manual", Appendix A
of
The
C Programming Language,
are
shown
in the left margin for reference.
4-1