Structure Alignment Examples
The following represent a set of examples showing structure requirements.
Example 1
Example 2
struct
{ // size = 24 bytes, alignment = Quadword
int a;
double b;
short c;
};
Example 3
Example 4
Example 4
Example 4 should indicate that l uses bytes 0-4, not 4-7.
Actually, that should be "0-3" that l uses, not "0-4"
Actually, that should be "0-3" that l uses, not "0-4"
- 2/16/2007
- dcook
- 2/17/2007
- Lee C Hunt