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: 1164f8,8ecdad84850d9973 X-Google-Attributes: gid1164f8,public X-Google-Thread: f8403,5b9190c01066e4f0 X-Google-Attributes: gidf8403,public X-Google-Thread: 110292,8ecdad84850d9973 X-Google-Attributes: gid110292,public X-Google-Thread: 1051a8,8ecdad84850d9973 X-Google-Attributes: gid1051a8,public X-Google-Thread: f6df3,8ecdad84850d9973 X-Google-Attributes: gidf6df3,public From: sschaem@teleport.com (Stephan Schaem) Subject: Re: MIPS R10K vs Alpha Date: 1996/04/16 Message-ID: <4l0s3c$sn6@nadine.teleport.com>#1/1 X-Deja-AN: 147832201 references: <4kb8a2$m6f@cville-srv.wam.umd.edu>,<4kl9s0$jmg@nadine.teleport.com> organization: Teleport - Portland's Public Access (503) 220-1016 newsgroups: comp.sys.sgi.hardware,comp.sys.powerpc,comp.sys.powerpc.tech,comp.sys.intel,comp.sys.dec,comp.sys.mips Cliff Click (cliffc@ami.sps.mot.com) wrote: : 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. add.l d4,d0 ;16bit instruction add.l (offset,a0),d5 ;" " add.l d1,(offset,a7) ;" " add.l (offset,pc),d7 ;" " all execute in the same time on a 040, 1 cycle... : 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. The 060 do have a copyback cache and 3 level FIFO write buffer. I do not know tho if it can execute the above 4 instructions in 2 cycles. An 040 would take 4 cycles. : 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. I think this can be minimized alot... and usually when the register shortage happen the non register variable will be the readonly ones (If possible). : This is all moot if you actually only need the "mem" value once; : in that case even the cache is less helpful. Thats true... and usualy if you need that variable once speed is not a concern. The diference would be 'bloated' code for the risc version. Stephan