[LLVMdev] Unpacked Structures within Packed Structures
clattner at apple.com
Thu Feb 4 13:46:19 PST 2010
On Feb 4, 2010, at 8:53 AM, John Criswell wrote:
> Dear LLVMers,
> I have a question on packed structures in LLVM 2.6.
> Is it possible to place an unpacked structure type as a member
> within a
> packed structure type? What I want to do is to have the fields of an
> inner structure padded per the ABI but have the elements of the outer
> structure packed.
Yep, that should work fine. One issue to watch out for is that the
elements of the non-packed struct may not be properly aligned if the
entire thing is off.
More information about the llvm-dev