You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracking item for adding size information for types. This includes size information of primitives and size computation of user defined types. Alignment may also have to be considered.
This could be available as part of the lexicon or some combination of the lexicon and auxiliary free functions.
The text was updated successfully, but these errors were encountered:
Information such as offsetof and friends are properties of the compiler's layout algorithms and other environmental parameters. I would suggest to separate that from characteristics such as sizeof and alignof of builtin types.
Certain builtin types (like double) have natural alignment (e.g. 8) that is different from when they are used as type of non-static data members of structures (e.g. 4). See GCC's option -malign-double and the rationale.
I suppose one way to account for this is to say that the alignment of the field is that of that subobject, not necessarily the natural alignment of the type even if the declaration of such a field does not contain alignas.
Tracking item for adding size information for types. This includes size information of primitives and size computation of user defined types. Alignment may also have to be considered.
This could be available as part of the lexicon or some combination of the lexicon and auxiliary free functions.
The text was updated successfully, but these errors were encountered: