3 ms·
I have wondered something for a while. x86 (32 and 64 bit) have much smaller instruction size on average than RISC ISAs. Given that modern compute performance i
by MobiusHorizons 3y ago
I have wondered something for a while. x86 (32 and 64 bit) have much smaller instruction size on average than RISC ISAs. Given that modern compute performance is heavily affected by cache performance and memory latency, it seems like the smaller codesize could really help with caching performance. Is this actually a factor? Does arm need bigger caches to combat this? Or does the unpredictability of unguessable instruction offsets ruin this in some way? It's obviously only one factor among menay, and ram is often filled with data not just code, but I've wondered about it for a while.
- tuetuopay 3y agoIf memory serves, the net code density is on par between x86 and ARM. Of course if you take some small code samples, yeah, it's an easy win for x86, but for real world programs, there end up being no measurable difference.
- renox 3y ago> the net code density is on par between x86 and ARM It was similar with Thumb, but now that there's ARMv8, ARM code density has probably decreased.