Types and sizes - Inria - Institut national de recherche en sciences et technologies du numérique
Rapport (Rapport De Recherche) Année : 2021

Types and sizes

Résumé

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++.
n2820.html (27.57 Ko) Télécharger le fichier
n2838.html (29.95 Ko) Télécharger le fichier

Dates et versions

hal-03363692 , version 1 (04-10-2021)

Licence

Identifiants

  • HAL Id : hal-03363692 , version 1

Citer

Jens Gustedt. Types and sizes. [Research Report] 2838, ISO JTC1/SC22/WG14. 2021. ⟨hal-03363692⟩
68 Consultations
0 Téléchargements

Partager

More