News for hackers. Stuff that matters.
Re:Why is Apple's M1 chip so fast? by pixelpoet on Monday November 30, 2020 @05:29PM (#25259880)
This I think is the real answer; for a long time people were saying that "CISC is just compression for RISC, making virtue of necessity", but it seems like M1 serves as a good counterexample where a simpler ISA is scaled up to modern transistor counts (and given exclusive access to the world's best manufacturing, TSMC 5nm).
Re:Why is Apple's M1 chip so fast? by throwarchitect on Monday November 30, 2020 @06:26PM (#25260378)
Considering that x86 is less dense than any RISC ISA, the "compression" argument behind CISC falls apart. No surprise a denser, trivial to decode ISA does better.
Re:Why is Apple's M1 chip so fast? by wk_end on Monday November 30, 2020 @08:14PM (#25261116)
You have a source for that? The first google result I found for research on that shows it as denser than almost every RISC ISA [1]. It’s just one study and it predates ARM64 fwiw though.

[1] https://www.researchgate.net/profile/Sally_McKee/publication...

Re:Why is Apple's M1 chip so fast? by throwarchitect on Monday November 30, 2020 @08:27PM (#25261198)
That paper uses no actual benchmarks, but rather grabbed a single system utility and then hand-optimized it; SPEC and geekbench show x86-64 comes in well over 4 bytes on average.
Re:Why is Apple's M1 chip so fast? by wk_end on Monday November 30, 2020 @08:54PM (#25261399)
Sure, I never claimed it to be the be-all-end-all, just the only real source I could find. Adding "SPEC" or "geekbench" didn't really help.

Doing a little more digging, I have also found this [1], which claims "the results show that the average instruction length is about 2 to 3 bytes". On the other hand, this [2] finds that the average instruction length is 4.25 bytes.

Bytes per instruction doesn't really say anything useful for code density when talking about RISC vs. CISC though, since (arguably) the whole idea is that individual CISC instructions are supposed to do more than individual RISC instructions. A three instruction CISC routine at five bytes each is still a win over a four instruction RISC routine at four bytes each. Overall code size is what actually matters.

[1] https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.40...

[2] http://www.cs.unc.edu/~porter/pubs/instrpop-systor19.pdf

Re:Why is Apple's M1 chip so fast? by monocasa on Monday November 30, 2020 @11:05PM (#25262191)
But there's more work being done per average x86_64 instruction due to RMW ops. Hence why they just look at an entire binary.