Skip to content

Comment on Why Registers Are Fast and RAM Is Slowparent

Comments

It's complicated, but modern processors actually do have many more registers than you can name in the instructions. They use things like "register renaming" to avoid false conflicts between instructions.

Registers that you name in assembly != physical registers. And when you use a register in two different instructions, you won't necessarily get the same physical register each time.

I thought this was an interesting insight in to that: http://ootbcomp.com/docs/belt/index.html

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.