From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,bbb5f6376898410d X-Google-Attributes: gid111c93,public X-Google-Thread: 1164f8,bbb5f6376898410d X-Google-Attributes: gid1164f8,public From: Thomas Dzubin Subject: Re: Write hint 64 on linux Date: 1999/11/10 Message-ID: <80cb1l$l6o$1@sylvester.vcn.bc.ca>#1/1 X-Deja-AN: 546981203 References: <382947a0.132312355@reading.news.pipex.net> X-Complaints-To: sys-admin@vcn.bc.ca X-Trace: sylvester.vcn.bc.ca 942255989 21720 207.102.64.2 (10 Nov 1999 17:46:29 GMT) Organization: Vancouver CommunityNet User-Agent: tin/pre-1.4-19990805 ("Preacher Man") (UNIX) (SunOS/5.7 (sun4u)) NNTP-Posting-Date: 10 Nov 1999 17:46:29 GMT Newsgroups: comp.os.linux.alpha,comp.sys.dec Thanks to Addy and Robert! These posts have been the most useful Usenet posts I've seen all week... I am going to try out these suggestions ASAP! In comp.sys.dec Addy wrote: > I've been using the 'ecb' instruction using inline assembler and > Compaq ccc; > #if defined(__DECC) || defined(__DECXX) > long asm(const char *, ...); > #pragma intrinsic( asm ) > asm("ecb 0(%a0)", address); > #endif > Also, as a little warning ... last time I tried the '-arch ev6' option > with the Compaq C compiler (on Tru64 and Linux) it generated > incorrect code. What happened was in a loop which > cleared memory, the compiler inserted a write-hint 64 instruction, but > for an incorrect address. This caused 'random' 64-byte cache lines > of my data to be read as all zero! > This should have been reported to Compaq ... > Addy. > -- ---------------------------------------------------------------------------- Thomas Dzubin, Network Analyst and PDP-11 tinkerer Vancouver, Saskatoon, or Calgary CANADA