[Top] [All Lists]

Re: load_unaligned() and "uld" instruction

To: "Maciej W. Rozycki" <>
Subject: Re: load_unaligned() and "uld" instruction
From: Ralf Baechle <>
Date: Fri, 6 Oct 2000 02:43:37 +0200
Cc: Jun Sun <>, "Kevin D. Kissell" <>, Dominic Sweetman <>,,
In-reply-to: <>; from on Wed, Sep 27, 2000 at 12:06:31PM +0200
References: <> <>
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.


[1] free barf bag on request.

<Prev in Thread] Current Thread [Next in Thread>