我听说了:
@H_403_3@[ABIs] guarantee the exact layout of the struct,byte offset of every member,which bits are used for bit fields,where and how much padding there is,etc…@H_403_3@但我一直认为填充和排列是不明确的和不可靠的. @H_403_3@the Itanium ABI(GCC使用)实际上是指定这些东西(据我所知,it doesn’t appear to超出了指定范围)? @H_403_3@如果是,那么__attribute__((packed))这样的选项如何适应呢?他们是否最终通过改变事物的一致来破坏ABI? @H_403_3@或者,正如引述所暗示的那样,仅仅在工具链之间进行包装,但实际上在某种ABI的使用中是可靠和可预测的?那么再一次,__attribute__((打包))这样的东西又怎么适合呢?