I\'m writing some software where each bit must be exact(it\'s for the CPU) so __packed is very important.
typedef union{ uint32_t raw; struct{ unsigned
If the exact position of bits matters, your safest bet is explicit packing and unpacking of the structure into an unsigned char array. Anything else is too implementation dependent.