From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25394 invoked by alias); 10 Jan 2008 00:50:37 -0000 Received: (qmail 25386 invoked by uid 22791); 10 Jan 2008 00:50:36 -0000 X-Spam-Check-By: sourceware.org Received: from elasmtp-scoter.atl.sa.earthlink.net (HELO elasmtp-scoter.atl.sa.earthlink.net) (209.86.89.67) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 10 Jan 2008 00:50:13 +0000 Received: from [76.167.204.177] (helo=PAULD) by elasmtp-scoter.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1JClcZ-0003Cc-IM for ecos-discuss@ecos.sourceware.org; Wed, 09 Jan 2008 19:50:12 -0500 From: "Paul D. DeRocco" To: Date: Thu, 10 Jan 2008 00:50:00 -0000 Message-ID: <015801c85322$bf2055e0$887ba8c0@PAULD> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook, Build 10.0.6822 In-Reply-To: X-ELNK-Trace: bd7d5d4e6f8f652c74cfc7ce3b1ad11381c87f5e519606889504a00ffd734d15d106888d41d01582350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: RE: [ECOS] Re: pragma pack X-SW-Source: 2008-01/txt/msg00037.txt.bz2 > From: Grant Edwards >=20 > The trap snaps shut when you take the address of a field in a=20 > packed struct and pass that to somebody who's expecting a=20 > pointer to a normally aligned value. True. I could imagine ways in which the type system could be designed to prevent that, using a pointer modifier like "int __packed*", but it's not. Anyway, for normal accesses, it works fine, so you can do things like operate on the fields in a DOS boot sector without problems. That's the only situation I've ever needed the feature. --=20 Ciao, Paul D. DeRocco Paul mailto:pderocco@ix.netcom.com=20 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss