The Lost Art of Structure Packing

Eric S. Raymond

see also

  • Writing memory efficient C structs - No mention of pahole / dwarves? lwn It’s the standard tool used by the Linux kernel developers. - HN
    • Poke-a-hole and friends - is an object-file analysis tool to find the size of the data structures, and the holes caused due to aligning the data elements to the word-size of the CPU by the compiler.
Written on March 20, 2019, Last update on April 12, 2025
c++ c++-memory fastware bits structure