Why are uintptr_t and intptr_t optional types in the C (and C++) standard?

前端 未结 1 2028
温柔的废话
温柔的废话 2021-01-04 10:10

With C99 (and later standards) standard requires certain types to be available in the header . For exact-width, e.g., int8_t,

相关标签:
1条回答
  • 2021-01-04 11:03

    On some platforms pointer types have much larger size than any integral type. I believe an example of such as platform would be IBM AS/400 with virtual instruction set defining all pointers as 128-bit. A more recent example of such platform would be Elbrus. It uses 128-bit pointers which are HW descriptors rather than normal addresses.

    0 讨论(0)
提交回复
热议问题