Hacker News new | ask | show | jobs
by MrCheeze 238 days ago
Exactly what I was going to post. Optimizations like loop unrolling slow down the N64 because keeping the code size small is the most important factor. I think even compilers of the time got this wrong, not just modern ones.
1 comments

The one that really blows me away is how KazeEmmanuar explained the software-controlled cache. Using it well would involve either manually making calls to load/invalidate it or writing a compiler backend that replaces loading data from memory into registers with instructions to load specific memory address ranges into cache.

The whole thing reminds me in a fuzzy way that I don't yet fully comprehend of register-memory architecture.