Advertisement
Guest User

Untitled

a guest
May 19th, 2017
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. /*
  2. things are getting more interesting with ints, longs and pointers
  3.  
  4. there are several different standard data models described by this table:
  5.  
  6. +-----------+----------------------------+
  7. |type\model | LP64 ILP64 LLP64 ILP32 LP32|
  8. +-----------+----------------------------+
  9. |char | 8 8 8 8 8 |
  10. |short | 16 16 16 16 16 |
  11. |int | 32 64 32 32 16 |
  12. |long | 64 64 32 32 32 |
  13. |long long | 64 |
  14. |void * | 64 64 64 32 32 |
  15. +-----------+----------------------------+
  16.  
  17. Win16 used LP32 (but we don't support it any longer), Win32 obviously used
  18. ILP32 and Win64 uses LLP64 (a.k.a. P64)
  19.  
  20. Under Unix LP64 is the most widely used (the only I've ever seen, in fact)
  21. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement