Is there any link or someone has maintained a single matrix of C C/C++ Pointer(s) sizes on different platform (linux, windows 32, windows 64 etc.).
I am looking for a matrix where i could find max information related to pointer sizes.
I tried and tried but miserably failed to search something useful.
Edit 1: No i didn't find a Matrix on the above duplicate link.
Edit 2:
Standard data types on UNIX, Linux, and Windows
+————————————-+—————————————+—————————————————+—————————————————+—————————————————+—————————————————+—————————————————+ | Name | WIn32 | Win64 | Unix32 | Unix64 | Linux32 | Linux64 | +————————————-+—————————————+—————————————————+—————————————————+—————————————————+—————————————————+—————————————————+ | char | | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | short | | 2 bytes | 2 bytes | 2 bytes | 2 bytes | 2 bytes | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | int | | 4 bytes | 4 bytes | 4 bytes | 4 bytes | 4 bytes | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | long | | 4 bytes | 4 bytes | 8 bytes | 4 bytes | 8 bytes | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | float | | 4 bytes | 4 bytes | 4 bytes | 4 bytes | 4 bytes | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | double | | 8 bytes | 8 bytes | 8 bytes | 8 bytes | 8 bytes | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | long double | | 8 bytes | 16 bytes *02 | 16 bytes *04 | 16 bytes *02 | 16 bytes *04 | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | pointer | | 8 bytes *01 | 4 bytes | 8 bytes | 4 bytes | 8 bytes | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | ptrdiff_t | | 8 bytes | 4 bytes | 8 bytes | 4 bytes | 8 bytes | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | size_t | | 8 bytes | 4 bytes | 8 bytes | 4 bytes | 8 bytes | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | time_t | | 8 bytes | 4 bytes | 8 bytes | 4 bytes | 8 bytes | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | clock_t | | 4 bytes | 4 bytes | 8 bytes *05 | 4 bytes | 8 bytes *05 | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | wchar_t | | 2 bytes | 4 bytes *03 | 4 bytes *03 | 4 bytes *03 | 4 bytes *03 | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | Word | | 2 bytes | | | | | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | Dword | | 4 bytes | | | | | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | Handle | | 8 bytes | | | | | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ | Hfile | | 4 bytes | | | | | +-------------+-------------+-----------------+-----------------+-----------------+-----------------+-----------------+ *01 - Note that all pointers are 8 bytes *02 - Note that on AIX and Linux PPC a long double is 8 bytes *03 - Note that on AIX a wchar_t is 2 bytes *04 - Note that on AIX and Linux PPC a long double is 8 bytes. *05 - Note that on the other UNIX platform a clock_t is 4 bytes.