Re:The Lost Art of Structure Packing (2018)
by ChrisSD on Monday April 27, 2020 @12:41PM
(#22997450)
Most platforms have have system level C APIs that are exposed to userspace. When using these APIs it's necessary to layout structures as they expect. Therefore all compilers on the same platform (OS+arch) would usually produce the same layout for structs so that they are compatible.
However this isn't universally true. Some platforms might not have a well defined C ABI.
However this isn't universally true. Some platforms might not have a well defined C ABI.