daemonwrangler
Re:RISC vs. CISC: What's the Difference?
on Wednesday July 01, 2015 @08:46PM (#9816266)
Sort of. The physical register file has more registers than what's specified in the ISA in order to support out-of-order execution. Hardware maps the small number of ISA registers to the larger number of physical registers. All sorts of complex stuff happens in the hardware to make it all work out right (e.g., bypass logic between pipeline stages to make sure dependent instructions are able to use just produced data before it gets stored in the register file). All to give the hardware greater scheduling flexibility.
So yes, there are more registers than you'd think by looking at the ISA, but they aren't available to the compiler, which can limit the kinds of optimizations it can make. I think when AMD introduced x86-64, they only increased ISA registers from 8 to 16. RISC ISAs at the time were offering 32-64 (and some also had larger physical register files to support OoO). Granted these days there's also all of the vector registers for SSE/AVX, but you'll need to have vectorizable code to leverage those.
All that being said, I don't think cache is a replacement for the register file.
Re:RISC vs. CISC: What's the Difference?
on Wednesday July 01, 2015 @08:37AM (#9811424)
Also simpler to decode. If you look at how much chip area goes to the frontend decoder in an x86 chip, that's a significant difference.
Re:RISC vs. CISC: What's the Difference?
on Wednesday July 01, 2015 @08:30AM (#9811384)
Can you use memory locations as operands in most instructions in the RISC ISAs these days? I always liked that RISC tended to have explicit Load and Store instructions to bring memory values into registers vs. being able to specify a register and a memory address as inputs to an instruction as you can in x86. Decoupling slow memory reads from the op that uses their values gives the CPU more flexibility in scheduling to try and hide the latency of memory ops.
Re:RISC vs. CISC: What's the Difference?
on Wednesday July 01, 2015 @08:17AM (#9811333)
Because it's easy to calculate? Too bad it's also utterly meaningless.
Re:RISC vs. CISC: What's the Difference?
on Wednesday July 01, 2015 @08:13AM (#9811323)
Something else to keep in mind is that you can get significant power savings when you lower the clock rate. So if you measure total power consumed to run a calculation, it may actually be more efficient to run on a fast CPU, finish quickly, and then drop into a low power state than it would be to run it on a low performance CPU for significantly longer.