3 ms·
It's better to think of the compiler allocating register names rather than registers. CPUs usually have far more physical registers which they allocate the ISA
by astrange 5y ago
It's better to think of the compiler allocating register names rather than registers. CPUs usually have far more physical registers which they allocate the ISA registers to, with some weird constraints, like some Intel CPUs have a penalty if you try to read a register that hasn't been written in a few hundred cycles.
But that problem is simpler than allocating a stack to physical registers.