From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa751,be70f766e74c3946 X-Google-Attributes: gidfa751,public X-Google-Thread: 1051a8,8ecdad84850d9973 X-Google-Attributes: gid1051a8,public X-Google-Thread: 1164f8,8ecdad84850d9973 X-Google-Attributes: gid1164f8,public X-Google-Thread: f6df3,8ecdad84850d9973 X-Google-Attributes: gidf6df3,public X-Google-Thread: f8403,5b9190c01066e4f0 X-Google-Attributes: gidf8403,public X-Google-Thread: 110292,8ecdad84850d9973 X-Google-Attributes: gid110292,public From: cliffc@ami.sps.mot.com (Cliff Click) Subject: Re: MIPS R10K vs Alpha Date: 1996/04/15 Message-ID: #1/1 X-Deja-AN: 147678136 references: <4kb8a2$m6f@cville-srv.wam.umd.edu>,<4kl9s0$jmg@nadine.teleport.com> followup-to: comp.sys.sgi.hardware,comp.sys.powerpc,comp.sys.powerpc.tech,comp.sys.intel,comp.sys.dec,comp.sys.mips organization: none newsgroups: comp.sys.sgi.hardware,comp.sys.powerpc,comp.sys.powerpc.tech,comp.sys.intel,comp.sys.dec,comp.sys.mips sschaem@teleport.com (Stephan Schaem) writes: > Well, if the memory is cached: using register only or memory + register > is not any diferent, it will be 1 cycle or less (I supose here that > the implementation support copyback cache and separate inst/data cache > like on the old motorola cisc) > Stephan No. reg+reg uses a lot less resources than reg+mem - in particular it avoids the precious load unit which is typically a bottleneck for superscalar issue. Superscalar issue logic can determine that reg+reg is independent of other operations and issue it in parallel. reg+mem is dependent on prior memory operations (store buffers can help avoid a store/load stall here), the value must actually *be* in cache (not really an issue since the value got into a register for the reg+reg case), and finally: most modern machines have as many, if not more, integer units than load/store units. Hence reg+reg typically "disappears" into cycles that are required to use the load unit. Reg+mem puts more pressure on the load unit and will prevent parallel issue occasionally. This is all moot if you actually only need the "mem" value once; in that case even the cache is less helpful. Cliff -- Cliff Click, Ph.D. Compiler Researcher & Designer RISC Software, Motorola PowerPC Compilers cliffc@risc.sps.mot.com (512) 891-7240 http://members.aol.com/mjclick1