From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Graegert Subject: Re: Any pointer to Byte Alignment & Structure Padding? Date: Fri, 5 Aug 2005 13:37:52 +0200 Message-ID: <6a00c8d5050805043763048f1f@mail.gmail.com> References: <014001c5968e$4e30ca70$9900a8c0@ispl091> <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> <035401c599b0$d2e676a0$9900a8c0@ispl091> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-Reply-To: <035401c599b0$d2e676a0$9900a8c0@ispl091> Content-Disposition: inline Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: Amit Dang Cc: linux-c-programming On 8/5/05, Amit Dang wrote: > 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". May be /Zp is set to 8 implicitly due to the fact that all libs are compiled with this option. While confusing to me, it may be an explaination for the results I observed. (Please, let's return to the valuable Linux/Unix discussion) Regards \Steve -- Steve Graegert Software Consultancy {C/C++ && Java && .NET} Mobile: +49 (176) 21248869 Office: +49 (9131) 7126409