From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Amit Dang" Subject: Re: Any pointer to Byte Alignment & Structure Padding? Date: Fri, 5 Aug 2005 16:58:08 +0530 Message-ID: <035401c599b0$d2e676a0$9900a8c0@ispl091> References: <014001c5968e$4e30ca70$9900a8c0@ispl091> <673ac06405080402432d0feda3@mail.gmail.com> <6eee1c40508040823165f1df7@mail.gmail.com> <00c001c59974$32b0c9b0$9900a8c0@ispl091> <6a00c8d50508042332245283db@mail.gmail.com> <013901c59989$ed3d6440$9900a8c0@ispl091> <6a00c8d505080500092364df97@mail.gmail.com> <17139.19285.978591.275528@cerise.gclements.plus.com> <6a00c8d50508050315501d900c@mail.gmail.com> <030b01c599ab$fb845be0$9900a8c0@ispl091> <6a00c8d5050805041337c42a4d@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-c-programming 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" To: "Amit Dang" Cc: "linux-c-programming" Sent: Friday, August 05, 2005 4:43 PM Subject: Re: Any pointer to Byte Alignment & Structure Padding? > On 8/5/05, Amit Dang 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