|
举个例子:
1. struct 2. struct
{ {
char a; char a;
int b; char c;
char c; short d;
short d; int b;
} }
存储方式:
1. | * | * | * | a |
|b[31:24]|b[23:16]|b[15:8]|b[7:0]|
|d[15:8] |d[7:0] | * | c |
2. | d[15:8] | d[7:0] | c | a |
|b[31:24]|b[23:16]|b[15:8]|b[7:0]|
|
|