Section 4
i
URi
t,
1
The C language that the TMS34010 C compiler supports is based on the
Unix
6
System V C language that is described by Kernighan and Ritchie, with
several additions and enhancements to provide compatibility with ANSI C.
The most significant differences are:
"
The addition of enum data type.
•
A member of a structure can have the same name as a member of another
structure (unique names aren't required).
•
Pointers to bit fields within structures are allowed.
•
Structures and unions may be passed as parameters to functions, re-
turned by functions, and assigned directly.
This section compares the C language compiled by the TMS3401 0 C compiler
to the C language described by Kernighan and Ritchie. It presents only the
differences in the two forms of the C language. The TMS3401 0 C compiler
supports standard Kernighan and Ritchie C except as noted in this section.
Throughout this section, references to Kernighan and Ritchie's
~
Reference
Manual (Appendix A of The C Programming Language) are shown in the left
margin.
Topics in this section include:
Section
Page
4.1
4.3 Object Alignment ....................................................................................... 4-6
4.4 Conversions ................................................................................................ 4-6
4.5 Expressions ................................................................................................. 4-7
4.6 Declarations ................................................................................................ 4-8
4.8 asm Statement ......................................................................................... 4-10
6
UNIX is a registered trademark of AT&T.
4-1