, , / .. , " ", , . , , , , (char).
You will most likely notice a registration if you create such a structure:
struct pad{
int8_t a;
int64_t b;
};
assert(sizeof(struct pad) == 16);
whose memory format should look like this:
|---|-------|---------|
| 1 | 7 | 8 |
|---|-------|---------|
byte|padding|64-bit int
Then again, there is no need to align the bytes, as they are the minimum storage unit.
source
share