sizeof struct

Karl Heuer karl at haddock.ima.isc.com
Thu Sep 7 06:19:26 AEST 1989


>Some other processors require word alignment, or alignment on a boundary
>equal to the size of the item stored there, or other such restrictions.

In this particular case, the processor doesn't require any special alignment
for the structure in question, but the implementation pads it anyway.  (As is
its right, silly though it may be.)  It's not a bug, just a misfeature.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list