Structure Alignment Examples 

Visual Studio 2005

Other Versions

 

The following represent a set of examples showing structure requirements.

Example 1

AMDConversionExample1 graphic

Example 2

Copy

struct
{   // size = 24 bytes, alignment = Quadword
   int a;
   double b;
   short c;
};

AMD Conversion Example graphic

Example 3

AMD Conversion Example3 graphic

Example 4

AMDConversionExample4 graphic

posted on 2010-10-11 09:02  xilentz  阅读(213)  评论(0编辑  收藏  举报