3 ms·
I don't think a large number of architectural registers is necessary - look at what people have been able to do with the highly-constrained 6502 in the C64, for
by userbinator 12y ago
I don't think a large number of architectural registers is necessary - look at what people have been able to do with the highly-constrained 6502 in the C64, for example. If anything, it's the compilers and compiler writers that need to be more intelligent about how they approach the problem, since humans have been better at writing Asm than compilers for... ever since compilers existed.
I think MIPS is a good example of how trying to make a "dumb and simple" architecture to cater to compiler writers, with the promise of cheap, tiny, and fast CPUs that required far less effort to design for the same performance, didn't work out so well:
http://www.extremetech.com/extreme/188396-the-final-isa-showdown-is-arm-x86-or-mips-intrinsically-more-power-efficient http://www.extremetech.com/extreme/188396-the-final-isa-show...
On the 2nd page of that article are the interesting results, and there's also this odd sentence: "Loongson also struggles, possibly due to poor compiler optimization."
...but isn't MIPS supposed to be one of the most compiler-friendly ISAs, with a very orthogonal and large number of registers (32!), and a uniform instruction format? In many compiler courses it is the "model architecture" of choice for its easy code generation and "better performance", but in the real world its only real advantage seems to be being small and cheap - and ARM, which is a bit more complex, is not far from it but surpasses it easily in efficency.