From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by oss.sgi.com id ; Thu, 5 Oct 2000 17:44:23 -0700 Received: from u-174.karlsruhe.ipdial.viaginterkom.de ([62.180.18.174]:8965 "EHLO u-174.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com with ESMTP id ; Thu, 5 Oct 2000 17:44:00 -0700 Received: (ralf@lappi) by lappi.waldorf-gmbh.de id ; Fri, 6 Oct 2000 02:43:37 +0200 Date: Fri, 6 Oct 2000 02:43:37 +0200 From: Ralf Baechle To: "Maciej W. Rozycki" Cc: Jun Sun , "Kevin D. Kissell" , Dominic Sweetman , linux-mips@oss.sgi.com, linux-mips@fnet.fr Subject: Re: load_unaligned() and "uld" instruction Message-ID: <20001006024337.A3429@bacchus.dhis.org> References: <39D0E51C.79A0BE50@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from macro@ds2.pg.gda.pl on Wed, Sep 27, 2000 at 12:06:31PM +0200 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linux-mips-outgoing On Wed, Sep 27, 2000 at 12:06:31PM +0200, Maciej W. Rozycki wrote: > Please don't. Gcc already has means to generate proper unaligned > accesses. See include/asm-alpha/unaligned.h for how to achieve them in a > portable way (i.e. using packed structs) without the problematic inline > asm. That's all very nice and guess what - I tried it when I originally wrote ualigned.h for Linux. Try building the mentioed Alpha code with and older compiler like egcs 1.0.3a and take a look at it [1]. 23 instructions for loading a double world - that's just mindboggling. Ralf [1] free barf bag on request.