From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 643412F15E for ; Wed, 25 Jul 2001 17:15:15 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f6PL8vn08567 for axp-list@listman.redhat.com; Wed, 25 Jul 2001 17:08:57 -0400 Received: from ellpspace.math.ualberta.ca (IDENT:michal@ellpspace.math.ualberta.ca [129.128.207.67]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f6PL8tg08563 for ; Wed, 25 Jul 2001 17:08:56 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.9.3/8.9.3) id PAA28758 for axp-list@redhat.com; Wed, 25 Jul 2001 15:15:09 -0600 Date: Wed, 25 Jul 2001 15:15:09 -0600 From: Michal Jaegermann To: axp-list@redhat.com Subject: Re: Unaligned accesses Message-ID: <20010725151509.A28747@ellpspace.math.ualberta.ca> References: <3B5E197B.50ED0967@iplink.net> <20010725114713.C17679@linux04.mro.cpqcorp.net> <3B5F2EFD.1440F426@Iplink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B5F2EFD.1440F426@Iplink.net>; from alvin@iplink.net on Wed, Jul 25, 2001 at 03:41:33PM -0500 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Wed, Jul 25, 2001 at 03:41:33PM -0500, alvin wrote: > > I am running out of time before my holidays so I will not be able to > verify this but my feeling is that if there are a number of unaligned > accesses that are back to back that is when the code breaks. If you are compiling that only with gcc then '__attribute__ ((packed))' on various structures will force gcc to generate a much more careful access code - for a price, of course. Try '-S' flag and see for yourself. :-) OTOH I really never tried that with arrays. Michal