6 ms·
Struct packing is something you can control at the compiler level. In gcc, you can add __attribute__((__packed__)) to your structs.
by andrewprock 10y ago
Struct packing is something you can control at the compiler level. In gcc, you can add __attribute__((__packed__)) to your structs.
- mikeash 10y agoThat can add a performance penalty. If it didn't, compilers would always pack tightly, after all. In any case, these particular structs don't have any special packing applied.