#include <stdio.h>
#include <stdint.h>
struct s1{
uint8_t u1;
uint32_t u2;
};
#pragma pack(1)
struct s2{
uint8_t u1;
uint32_t u2;
};
int main(){
int s_s1 = sizeof(struct s1);
int s_s2 = sizeof(struct s2);
printf("sizeof (s1) = %d\n", s_s1
); printf("sizeof (s2) = %d", s_s2
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRpbnQuaD4KIAogc3RydWN0IHMxewogICAgIHVpbnQ4X3QgdTE7CiAgICAgdWludDMyX3QgdTI7IAogfTsKIAogI3ByYWdtYSBwYWNrKDEpCiAKICBzdHJ1Y3QgczJ7CiAgICAgdWludDhfdCB1MTsKICAgICB1aW50MzJfdCB1MjsgCiB9OwogCmludCBtYWluKCl7CiAgICBpbnQgc19zMSA9IHNpemVvZihzdHJ1Y3QgczEpOwogICAgaW50IHNfczIgPSBzaXplb2Yoc3RydWN0IHMyKTsKICAgIAogICAgcHJpbnRmKCJzaXplb2YgKHMxKSA9ICVkXG4iLCBzX3MxKTsKICAgIHByaW50Zigic2l6ZW9mIChzMikgPSAlZCIsIHNfczIpOwogICAgCiAgICByZXR1cm4gMDsKfQ==