Alignment testing

Hans Leidekker hans at it.vu.nl
Mon Apr 26 14:22:57 CDT 2004


Hi,

[Use a fixed width font to view this message]

                          MSVC   MinGW  GCC

Alignment of __int64:     8      8      8
Size of __int64:          8      8      8

Alignment of large_int:   8      8      4
Size of large_int:        8      8      8

Alignment of container1:  8      8      4
Size of container1:       16     16     12

Alignment of container2:  8      8      4
Size of container2:       16     16     12

Alignment of container3:  8      8      4
Size of container3:       8      8      8

Clearly GCC is the odd one out. When a double is embedded in
a structure GCC does not adjust the alignment of the structure
to the size of a double.

So, should we add -malign-double to the compiler flags?

 -Hans



More information about the wine-devel mailing list