From: Doron Holan [MSFT] on
there is a difference between asking for explicit packing and what the
default packing is. the cmd line tells you the default packing, the pdb
will tell you the explicitly aske for packing for a particular struct

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"m" <m(a)b.c> wrote in message news:uGrV2AEsKHA.6004(a)TK2MSFTNGP04.phx.gbl...
> Or more reliably, build a sample and look at the alignment of a structure.
> /Zp is often overridden in header files with pragma pack, but the binary
> never lies ;)
>
> "Doron Holan [MSFT]" <doron.holan(a)online.microsoft.com> wrote in message
> news:uiH8zuBsKHA.6004(a)TK2MSFTNGP04.phx.gbl...
>> you can easily open a 64 bit build window, build a sample and see what
>> /Zp<N> parameter is placed on the cmd line to cl.exe
>>
>> d
>>
>> --
>>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>>
>> "Peter" <Peter(a)discussions.microsoft.com> wrote in message
>> news:5B746C3F-BD54-40A9-B921-80C7B28B7C6F(a)microsoft.com...
>>> Hi,
>>> I found in doc that default struct member alignment (/Zp compiler
>>> switch) is
>>> 8 bytes.
>>> Is it true also for x64 compilations ?
>>>
>>> Peter
>>