Article View: gnu.gcc.help
Article #52394Re: Pre 2.3 GCC on DEC's Alpha
From: Eliot Moss
Date: Tue, 27 Oct 1992 01:22
Date: Tue, 27 Oct 1992 01:22
37 lines
2838 bytes
2838 bytes
>>>>> On 23 Oct 92 14:44:40 GMT, ishikawa@ds5200.personal-media.co.jp (Chiaki >>>>> Ishikawa) said: Chiaki> Hello. Chiaki> I attended an Alpha exhibition hosted by Japan DEC near Tokyo Chiaki> Disneyland. I had a chance to talk to someone who worked on Alpha Chiaki> compiler such as C and Fortran (and presumably BLISS, too). He said Chiaki> ALPHA doesn't have a byte manipulation instruction. Eh, rather, he Chiaki> said its memory access is done in only 32 bit or 64 bit. So character Chiaki> manipulation has to be done by word access, and then masking and Chiaki> operation. Chiaki> I know it is possible, but wouldn't it be a little clumsy to Chiaki> manipulate character data on Alpha? This is a decision that the hardware designers made after very careful consideration of all the performance ramifications. They seem to come to the conclusion that, given typical usage of 64-bit, 32-bit, and character operations, offering 64- and 32-bit loads/stores was a good idea and that (though convenient) having byte loads/stores would slow down overall program execution by complicating the processor in some places. It is exactly this sort of delicate design decision they get paid for, and presumably good decisions are part of why the Alpha clock can be so fast. In the Alpha handbook they detail how to extract bytes, etc., and there are nice instructions to help one do so. Note: this question really should have gone to comp.arch, but what the heck .... -- J. Eliot B. Moss, Associate Professor Visiting Associate Professor Department of Computer Science School of Computer Science Lederle Graduate Research Center Carnegie Mellon University University of Massachusetts 5000 Forbes Avenue Amherst, MA 01003 Pittsburgh, PA 15213-3891 (413) 545-4206, 545-1249 (fax) (412) 268-6767, 681-5739 (fax) Moss@cs.umass.edu Moss@cs.cmu.edu
Technical Details
Message-ID:
<MOSS.92Oct26202253@CRAFTY.cs.umass.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!netnews-2.srv.cs.cmu.edu!mossReferences:
<1992Oct20.233448.20510@news.miami.edu> <719769369.966450.KASHTAN@TGV.COM> <ISHIKAWA.92Oct23234440@ds5200.personal-media.co.jp>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b94a279c5cf70032 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-10-26 13:13:36 PST Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!netnews-2.srv.cs.cmu.edu!moss From: moss@cs.umass.edu (Eliot Moss) Newsgroups: gnu.gcc.help Subject: Re: Pre 2.3 GCC on DEC's Alpha Message-ID: <MOSS.92Oct26202253@CRAFTY.cs.umass.edu> Date: 27 Oct 92 01:22:53 GMT Article-I.D.: CRAFTY.MOSS.92Oct26202253 References: <1992Oct20.233448.20510@news.miami.edu> <719769369.966450.KASHTAN@TGV.COM> <ISHIKAWA.92Oct23234440@ds5200.personal-media.co.jp> Sender: news@cs.cmu.edu (Usenet News System) Reply-To: moss@cs.umass.edu Distribution: gnu Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst) Lines: 37 In-Reply-To: ishikawa@ds5200.personal-media.co.jp's message of 23 Oct 92 14:44:40 GMT Nntp-Posting-Host: crafty.fox.cs.cmu.edu