Class Instance allocations

Robert Jacques sandford at jhu.edu
Wed Jan 13 08:42:06 PST 2010


On Wed, 13 Jan 2010 10:29:35 -0500, Justin Johansson <no at spam.com> wrote:

> I understand your quandary.
>
> For me "Win32" == "32 bits" == "4 bytes" == "sizeof(ubiquitous machine  
> register)".
>
> So why on earth, since Visual Studio 2001 (and before?), was the default  
> alignment set to 8 bytes for the M$ C/C++ compiler code generation  
> option?  This I just do not understand (so, of course, enlightenment is  
> welcome).
>
> Beers for the New Years,
>
> Justin Johansson

If I recall correctly, doubles require 8-byte alignment. So you object  
therefore must require 8-byte alignment.



More information about the Digitalmars-d mailing list