From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4671,65925da605c1dd50 X-Google-Attributes: gidf4671,public X-Google-Thread: fcfb9,594e400adc8f1378 X-Google-Attributes: gidfcfb9,public X-Google-Thread: 1164f8,b23f30c954cd197e X-Google-Attributes: gid1164f8,public From: djweath@ibm.net (Dave Weatherall) Subject: Re: Will Sun leave the HW arena? Date: 1998/04/19 Message-ID: #1/1 X-Deja-AN: 345581341 Content-Transfer-Encoding: 8bit References: <6dos27$gr8@eve.enteract.com> <3516F777.4068@Japan.ML.COM> <3517E01A.A166EDDD@mitretek.org> <6f9ul8$84s$10@blue.hex.net> <6fbuni$n7$1@nnrp1.dejanews.com> <6fe0bf$46d$1@mailhost.sign-tronic.dk> <6fjdf0$e10$1@nnrp1.dejanews.com> <6fnlok$3tq$1@mailhost.sign-tronic.dk> <35230C39.6910@world.std.com> <48PU.52$T51.168348@ptah.visi.com> <3523E51A.7C09@world.std.com> <7YTU.111$T51.375676@ptah.visi.com> <3524DCA8.335@world.std.com> <353757C7.2781@s054.aone.net.au> X-Notice: should be forwarded in their entirety to postmaster@ibm.net MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: 19 Apr 1998 07:56:09 GMT, 139.92.4.12 Organization: IBM.NET Newsgroups: comp.sys.sun.hardware,comp.sys.dec,comp.os.linux.advocacy On Fri, 17 Apr 1998 13:23:19, "Mark & Suzanne (gcs might work)" wrote: > eg. > int *i; > int j; > > j = *i; > You get 32bits into the cache not 64bits > if you do > long *i; > long j; > > j = *i; > The you get 64bits into the cache not otherwise Mark I can't check this but that doesn't sound quite right to me. I would have thought it would depend on the operation you were performing and how the the compiler arranges the data. If the compiler generates code to load two 32 bit variables that live in adjacent memory locations into one 64 bit register then that 64 bit value is what would go into cache. Ok reads again and notices the pointer syntax (I write Fortran for a living!). However, the comment still applies, methinks, if the compiler has generated a 64bit load to fulfil either of the code examples and that 64 bit location in the cache, I don't see the performance hit. (or is the cache only 32 bit?) After all, all 64bits of the register will be loaded in both cases. I'd have to get my AXP architecture book out to understand this better. Having said that, why having both variables in cache should make anything slower I don't know.... Cheers - Dave.