3 ms·
Is the result different for this benchmark for an ARMv8 cpu with its ~31 registers vs an x86_64 CPU with its ~15 registers? For example, M1 vs Skylake?
by CalChris 5y ago
Is the result different for this benchmark for an ARMv8 cpu with its ~31 registers vs an x86_64 CPU with its ~15 registers? For example, M1 vs Skylake?
- ComputerGuru 5y agox86_64 has 15 named registers, but many more in practice. Register renaming is used to bypass code that juggles between them.
- CalChris 5y agoI’m aware of that. But the compiler is limited to using the architectural register sets.
- ComputerGuru 5y agoRight, but the modern CPU pretty much ignores that altogether and looks only at dependency chains to decide which and how many registers to use.