News for hackers. Stuff that matters.
Re:How many registers does an x86-64 CPU have? (2020) by cv5005 on Saturday February 14, 2026 @11:48AM (#47015992)
A good compiler will only do that if the register spilling is more efficient than using more stack varibles, so I don't really see the problem.
Re:How many registers does an x86-64 CPU have? (2020) by Joker_vD on Saturday February 14, 2026 @09:34PM (#47020528)
You can't operate on stack variables without loading them into the registers first, not on RISCs anyway. My main point is that this memory-shuffling traffic is unavoidable in non-leaf functions, so an extremely large amount of available registers doesn't really help them.