Types and sizes - Archive ouverte HAL Access content directly
Reports (Research Report) Year : 2021

Types and sizes

(1)
1

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

Dates and versions

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

Licence

Attribution - CC BY 4.0

Identifiers

  • HAL Id : hal-03363692 , version 1

Cite

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

Share

Gmail Facebook Twitter LinkedIn More