hi,
structure padding is the way to put padding bits/bytes depening on byte boundary.
but where structure packing comes, as i know that it supresses the padding bits.if it so, is the processor able to read that paricular memory efficiently.
supressing means what actually will happen in memory.
--->here 1 byte+1 byte+1 byte+4 bytes=7 bytes.Code:struct { char a; char b; char c; int i; }; --->here 1 byte+1 byte + 1 byte + padding byte + 4 bytes = 8 bytes sturct { char a; char b; char c; int i; }__attribute__((packed));
supressing of padding bytes means what?.but then no byte boundary here.
please tell me what is it?