[cfe-dev] struct layout in AIX

Zeson Wu via cfe-dev cfe-dev at lists.llvm.org
Wed May 4 20:06:33 PDT 2016


Hi.

Is the alignment of a struct be computed in the constructor of StructLayout
class? I wonder that the position of a member in the struct has been
considered in llvm? Because the alignment of a member is dependent to the
position in the struct in AIX platform according to the table in
http://www.ibm.com/support/knowledgecenter/SSGH2K_13.1.2/com.ibm.xlc131.aix.doc/proguide/alignment.html
(`power` alignment setting)


   1. In aggregates, the first member of this data type is aligned
   according to its natural alignment value; subsequent members of the
   aggregate are aligned on 4-byte boundaries.


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160505/cb0a2fc8/attachment.html>


More information about the cfe-dev mailing list