SPRAC71A March 2019 – February 2020
Pointers have the following data sizes.
| Type | Size | Storage | Alignment |
|---|---|---|---|
| function pointer | 32 | 32 | 32 |
| data pointer | 32 | 32 | 32 |
| size_t | 32 | 32 | 32 |
| ptrdiff_t | 32 | 32 | 32 |
Even though pointers are stored as 32 bites, the compiler should assume that the addresses of global variables and functions are within a 22-bit limit.