[cfe-dev] calculating binary layout of c++ classes for various compilers and operating systems

Sebastian Redl sebastian.redl at getdesigned.at
Tue Sep 14 09:50:54 PDT 2010


On Sep 14, 2010, at 9:28 AM, chris nuernberger wrote:

> Does anyone have specific experience with the actual object binary
> layouts of the different compilers?  Where is the code that builds the
> actual binary layouts in clang?  I was told it was later, in the code
> gen phase.  I will probable want to use it as a template or reference.

The layout code is in AST, probably in ASTContext, because it's needed to determine the size of an object.

Sebastian



More information about the cfe-dev mailing list