The volume is in x86.
For example, we have this structure:
struct X{
int a;
char b;
double c;
};
X x;
I think alignment xshould be the largest member in it, in this case it is double , which is 8 bytes,
so it &xshould be a multiple of 8 , am I right?
However, after some tests, my compiler (msvc 2013) says it &xcan also be a multiple of 4 , but not 8 .
Does this not mean that &x.cit will also be a multiple of 4 ?
Where do I misunderstand?
source
share