From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,a997f8105715a8bb X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,a997f8105715a8bb X-Google-Attributes: gidfee84,public From: danpop@afsmail.cern.ch (Dan Pop) Subject: Re: char access is not so fast (:-<) Date: 1995/05/02 Message-ID: #1/1 X-Deja-AN: 101874603 distribution: comp sender: news@news.cern.ch (USENET News System) x-nntp-posting-host: ues5.cern.ch references: organization: CERN European Lab for Particle Physics newsgroups: comp.unix.osf.osf1,comp.sys.dec In kuge@strl.nhk.or.jp (Tetsuro KUGE) writes: >Hi, speedsters (^^;), > >It is seemed the access to char *array on Alpha CPU >is NOT so faster than the "slower" chips of Sparc etc. > >On the Alpha server 4/275 with OSF/1 V.3.0B, >the cc opitons -O* does not improve the situation (:-<). > >Is it my misunderstanding ? It's not your misunderstanding, it's the Alpha architecture not being able to access bytes. The only data sizes that can be directly accessed by Alpha are 32 and 64 bit. For characters and short int's there is a certain overhead, as the accesses have to be implemented in software (with more than one instruction :-) Dan -- Dan Pop CERN, CN Division Email: danpop@afsmail.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland