找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3060|回復: 0
打印 上一主題 下一主題
收起左側

The size of basic data types

[復制鏈接]
跳轉到指定樓層
樓主
ID:51269 發(fā)表于 2014-11-11 00:29 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
This table gives the size and natural alignment of the basic data types in ARM C or C++.  

   
TypeSize in bitsNatural alignment in bytes
char 81   (byte-aligned)
short 162   (halfword-aligned)
int 324   (word-aligned)
long 324   (word-aligned)
long long 648   (doubleword-aligned)
float 324   (word-aligned)
double 648   (doubleword-aligned)
long double 648   (doubleword-aligned)
All pointers324   (word-aligned)
bool (C++ only)81   (byte-aligned)
_Bool (C only[1])81   (byte-aligned)
wchar_t (C++ only)162   (halfword-aligned)
  
[1] stdbool.h can be used to define the bool macro in C.



   
                                                                                            
                                                                                

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復 返回頂部 返回列表