Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
CalChris
· 5y ago · 0 comments
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?
Comments
[–]
ComputerGuru
5y ago
x86_64 has 15 named registers, but many more in practice. Register renaming is used to bypass code that juggles between them.
[–]
CalChris
OP
5y ago
I’m aware of that. But the compiler is limited to using the architectural register sets.
[–]
ComputerGuru
5y ago
Right, but the modern CPU pretty much ignores that altogether and looks only at dependency chains to decide which and how many registers to use.