Tutorial by Topics: packing

By default, C compilers lay out structures so that each member can be accessed fast, without incurring penalties for 'unaligned access, a problem with RISC machines such as the DEC Alpha, and some ARM CPUs. Depending on the CPU architecture and the compiler, a structure may occupy more space in mem...

Page 1 of 1