码迷,mamicode.com
首页 > 其他好文 > 详细

6.4 Data Types

时间:2017-02-12 21:03:49      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:har   ade   present   分享   values   head   stand   opera   val   


Table 6-1 lists the size, representation, and range of each scalar data type for the C28x compiler. Many of
the range values are available as standard macros in the header file limits.h.

技术分享

 

NOTE: TMS320C28x Byte is 16 Bits

By ANSI/ISO C definition, the sizeof operator yields the number of bytes required to store an
object. ANSI/ISO further stipulates that when sizeof is applied to char, the result is 1. Since
the TMS320C28x char is 16 bits (to make it separately addressable), a byte is also 16 bits.
This yields results you may not expect; for example, size of (int) = = 1 (not 2). TMS320C28x
bytes and words are equivalent (16 bits). To access data in increments of 8 bits, use the
__byte() and __mov_byte() intrinsics described in Section 7.4.5.

 

6.4 Data Types

标签:har   ade   present   分享   values   head   stand   opera   val   

原文地址:http://www.cnblogs.com/qiyuexin/p/6391681.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!