source is from
http://developers.sun.com/solaris/articles/ILP32toLP64Issues.html
and
http://www.unix.org/whitepapers/64bit.html
there are several kind of data type mode
| Data Type | LP32 | ILP32 | ILP64 | LLP64 | LP64 |
|---|---|---|---|---|---|
| char | 8 | 8 | 8 | 8 | 8 |
| short | 16 | 16 | 16 | 16 | 16 |
| int32 | 32 | ||||
| int | 16 | 32 | 64 | 32 | 32 |
| long | 32 | 32 | 64 | 32 | 64 |
| long long (int64) | 64 | ||||
| pointer | 32 | 32 | 64 | 64 | 64 |
本文介绍了不同数据类型模式(LP32, ILP32, ILP64, LLP64, LP64)下各种基本数据类型(如char, short, int, long, long long)的位宽变化情况。这对于理解32位与64位系统中数据类型的表示至关重要。
4027

被折叠的 条评论
为什么被折叠?



