Re:The Lost Art of Structure Packing (2018)
by smcameron on Monday April 27, 2020 @02:17PM
(#22998393)
There's pahole https://lwn.net/Articles/335942/
Re:The Lost Art of Structure Packing (2018)
by SlowRobotAhead on Monday April 27, 2020 @02:05PM
(#22998285)
If you just order top down in structures from pointers, 32s, 16s, arrays, 8s, it’s almost entirely done without thinking.
There is almost never a difference to the user what order things are structured. Although to be fair this does get tricky with unions of structure over structure.
It seems like something like that could be useful rather than making programmers try to order their structs by hand.