Skip to Main content Skip to Navigation
New interface
Reports (Research report)

Types and sizes

Jens Gustedt 1 
1 CAMUS - Compilation pour les Architectures MUlti-coeurS
Inria Nancy - Grand Est, ICube - Laboratoire des sciences de l'ingénieur, de l'informatique et de l'imagerie
Abstract : In 6.5.2 of the C standard, sizes are primarily defined for types. Although this is not stated explicitly, it is commonly assumed that such sizes cannot exceed SIZE_MAX. Sizes of *objects* (in contrast to *storage instances* as of TS 6010) are only a deduced property that is in most cases defined through the type that an object has. This proposal attempts to make this approach consistent throughout the standard, and to reduce the number of marginal cases where the interpretation of sizeof is different between C and C++.
Document type :
Reports (Research report)
Complete list of metadata

https://hal.inria.fr/hal-03363692
Contributor : Jens Gustedt Connect in order to contact the contributor
Submitted on : Monday, October 4, 2021 - 10:39:10 AM
Last modification on : Wednesday, October 26, 2022 - 8:15:24 AM

Licence


Distributed under a Creative Commons Attribution 4.0 International License

Identifiers

  • HAL Id : hal-03363692, version 1

Citation

Jens Gustedt. Types and sizes. [Research Report] 2838, ISO JTC1/SC22/WG14. 2021. ⟨hal-03363692⟩

Share

Metrics

Record views

32

Files downloads

0