[Aldor-l] alignof
Pippijn van Steenhoven
pip88nl at gmail.com
Fri Mar 21 18:22:36 EDT 2008
First of all, it is not important whether or not there is an example. The
compiler is free to add padding to a struct { char a; short b; }; and then the
code is broken. On x86, it would make sense to align the short to 4 bytes and
the struct itself, too, leading to an alignof (that struct) of 0. I can
probably live with it as long as no issues arise. The problem is really just,
the code is broken and it would be good if a better alternative was found.
--
Pippijn van Steenhoven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://aldor.org/pipermail/aldor-l_aldor.org/attachments/20080321/5f514909/attachment.bin
More information about the Aldor-l
mailing list