Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Martin Ostermann <ost@comnets.rwth-aachen.de>
Subject: Re: Unaligned memory explained.
Date: 20 Nov 1996 10:32:24 +0100	[thread overview]
Message-ID: <6fcaf53c75c0232b73de5d6a183ac1a9.axp-list@archive.invalid> (raw)

elf@netcom.com (Marc Singer) writes:
> > You don't have to worry about the unaligned memory errors.  They
> > have something do do with the way the alpha uses memory (could some
> > one please go over this in detail).
> 
[good explainations ommited]
> "Why is this all-of-a-sudden a problem?" you ask.  The x86 performs
> unaligned memory accesses by reading twice and fixing the result.
> It's not efficient and is usually optimized out of good programs, but
> since the x86 permits this behavior the programmers who were not
> careful about aligning their data will find their programs faulting on
> RISC machines.  

I'd like to add:

The reason we don't have to worry badly about it is that on
Linux/Axp the OS catches the traps caused by this fault, and it is
emulating the above behaviour, e.g. the program will be executed
slowly, but correctly.

Martin

-- 
Martin Ostermann                | mailto:ost@comnets.rwth-aachen.de
Communication Networks          | http://www.comnets.rwth-aachen.de/~ost
Aachen University of Technology | phoneto:++49/241/807917
Germany                         | faxto:++49/241/8890378

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1996-11-20  9:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-20  9:32 Martin Ostermann [this message]
     [not found] <Pine.LNX.3.91.961118213406.28446A-100000@ims1.imagestream.com>
1996-11-19 22:18 ` Unaligned memory explained Marc Singer
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox