Hi,
I would like to get some confirmation/info/link regarding the memory layout compatibility between Clang and gcc. Specifically, for the struct and class construct. Default and when #pragma pack is used.
Thanks,
- Welson
Hi,
I would like to get some confirmation/info/link regarding the memory layout compatibility between Clang and gcc. Specifically, for the struct and class construct. Default and when #pragma pack is used.
Thanks,
Hi,
I would like to get some confirmation/info/link regarding the memory
layout compatibility between Clang and gcc. Specifically, for the struct
and class construct. Default and when #pragma pack is used.
Clang and GCC are supposed to be compatible in this regard. Any
incompatibility is likely a bug in one of the two compilers.
Thanks David, that’s good to know.
A follow up question: if a struct type is coerced, how do I get the memory layout (i.e. each field’s offset) inside LLVM? It appears that the lowered type has no reference to the original struct type?