This paper describes the management of register spills in a retargetable C compiler. Spills are rare, which means that testing is a bigger problem than performance. The trade‐offs have been arranged so that the common case (no spills) generates respectable code quickly and the uncommon case (spills) is less efficient but as simple as possible. The technique has proven practical and is in production use on VAX, Motorola 68020, SPARC and MIPS machines.
No takes yet. Share an insight, caveat, or question.
Fraser et al. (1992) studied this question.
Synapse has enriched 2 closely related papers on similar clinical questions. Consider them for comparative context: