标题: The size of basic data types [打印本页]

作者: xiaoliu    时间: 2014-11-11 00:29
标题: The size of basic data types
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.



   
                                                                                            
                                                                                






欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1