memory alignment within gcc structs

If you’re depending on sizeof(yourstruct) being 42 bytes, you’re about to be bitten by a world of non-portable assumptions. You haven’t said what this is for, but it seems likely that the endianness of the struct contents matters as well, so you may also have a mismatch with the x86 there too. In this situation … Read more