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
So far align makes 3D compute automatic alignment padding for structs, but not casetypes.
Case 1: user-defined casetypes
While a user can arbitrarily nest align structs as field members of a casetype, 3D currently provides no automatic mechanism to produce alignment padding for the whole casetype. This would be useful for casetypes refining C union types.
Case 2: #if
However, this should not be allowed if the casetype was generated as a support for #if. Yet automatic alignment support may become harder for #ifs since the alignment may depend on the conditional. Rather, we should make sure each case of such casetype is properly aligned.
So far
align
makes 3D compute automatic alignment padding forstruct
s, but notcasetype
s.Case 1: user-defined
casetype
sWhile a user can arbitrarily nest
align struct
s as field members of acasetype
, 3D currently provides no automatic mechanism to produce alignment padding for the wholecasetype
. This would be useful forcasetype
srefining
C union types.Case 2:
#if
However, this should not be allowed if the
casetype
was generated as a support for#if
. Yet automatic alignment support may become harder for#if
s since the alignment may depend on the conditional. Rather, we should make sure each case of suchcasetype
is properly aligned.What should we do with:
Alignment padding after
foo
will depend onMYCOND
(2 or 6 bytes.)The text was updated successfully, but these errors were encountered: