I just check /Zp by default is set to 8 not 4 ( which i read some where).
Moreover all libraries are also compiled with /Zp8. Changing it to some
other value raises a warning "compiler option 'structure packing (/Zp)'
inconsistent with precompiled header; current command-line option ignored".

Regards,
Amit Dang
----- Original Message ----- 
From: "Steve Graegert" <[EMAIL PROTECTED]>
To: "Amit Dang" <[EMAIL PROTECTED]>
Cc: "linux-c-programming" <[email protected]>
Sent: Friday, August 05, 2005 4:43 PM
Subject: Re: Any pointer to Byte Alignment & Structure Padding?


> On 8/5/05, Amit Dang <[EMAIL PROTECTED]> wrote:
> > This should not happen until compiler option /Zp is explicitly set to 8.
> > Quoted from msdn
>
> [snipped very useful info]
>
> Thanks for the pointer.  After checking the command line switches (/Zp
> was not set) and removing any optimizing option the result did not
> change.  I actually don't care very much about the MS way things are
> done, but it seems they follow their own logic.
>
> Regards
>
> \Steve

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" 
in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to