Is there a way in gcc or clang (or any other compiler) to spit information about whether a struct has holes (memory alignment - wise) in it ?
Thank you.
ps: If
You can use pahole to output information about holes in structures and optionally attempt packing them.
You may want to read "Poke-a-hole and friends" and the pahole announcement for more information