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 DB45C2F956 for ; Tue, 24 Jul 2001 20:56:39 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f6P0oKH17316 for axp-list@listman.redhat.com; Tue, 24 Jul 2001 20:50:20 -0400 Received: from ml.comspec.com (IDENT:root@ml.comspec.com [192.139.80.27]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f6P0oJg17312 for ; Tue, 24 Jul 2001 20:50:19 -0400 Received: from mercutio.iplink.net ([192.139.81.54]:24845 "EHLO iplink.net") by ml.comspec.com with ESMTP id ; Tue, 24 Jul 2001 20:56:19 -0400 Message-ID: <3B5E197B.50ED0967@iplink.net> Date: Tue, 24 Jul 2001 20:57:31 -0400 From: alvin X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17-14 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Unaligned accesses References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: I have noticed some problem with accessing unaligned data. I have an application that has a bunch of accesses to shorts in a byte array. Not seeing any more alignment errors from the kernel I assumed that all was ok due to the fact that althought it is a byte array it seemed to be short aligned... Well this turns out to be wrong. forcing alignment and doing memcpy's made my problems go away. I was under the impression that the: 1) OS/Palcode handled unaligned accessed as a fault and although there is a performance penalty that is all. 2) The kernel generated an error message for unaligned accesses. -- Alvin Starr || voice: (416)785-4051 Interlink Connectivity || fax: (416)785-3668 alvin@iplink.net ||