From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,e02328d126cd4ed X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-01-30 06:54:45 PST Sender: prep@k9 Newsgroups: comp.os.linux.alpha Subject: Re: unaligned trap References: <951puk$4go$1@nnrp1.deja.com> <9547sk$9re$2@pulp.srv.ualberta.ca> From: Paul Repacholi Date: 30 Jan 2001 20:49:59 +0800 Message-ID: <87bssp6w7c.fsf@prep.synonet.com> User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 179.d01.pe.iqnet.net.au X-Trace: 30 Jan 2001 22:04:02 +0800, 179.d01.pe.iqnet.net.au Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!skynet.be!newsfeed.iinet.net.au!news.waia.asn.au!usenet.per.paradox.net.au!127.0.0.1!nobody Xref: supernews.google.com comp.os.linux.alpha:2132 michal@gortel.phys.ualberta.ca writes: > Hartmann Schaffer wrote: > > you probably have a first generation alpha (21064?): they have only > > full word load and store instructions. halfword and byte instructions > > were added with later generations. > > Nope. A presence of new instructions in processors of a later > generation, which allow for a "native" access to smaller chunks of > memory, makes for more compact and faster machine code to get to these > (no need for stack games) but does not really loosen up alignment > requirements. Fetching 'int' from an unaligned memory address will earn > you the same "unaligned trap" like before. Maybe fixup routine can be > made faster. No ,the load unaligned and friend cost speed. See the design papers. They should only be used for bus access if possible. -- Paul Repacholi 1 Crescent Rd., +61 (08) 9257-1001 Kalamunda. West Australia 6076 Raw, Cooked or Well-done, it's all half baked.