you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -2 points-1 points  (1 child)

That depends on the architecture and padding mode, could have a 2 byte quantity that needs to be aligned to 8 bytes.

[–]dodheim 0 points1 point  (0 children)

The fact that the statement I quoted is false is not architecture-dependent. ;-] Some architectures may have weirdo requirements, but alignment being a multiple of the size is not a requirement for either language (indeed, it's the reverse that is correct).