News Score: Score the News, Sort the News, Rewrite the Headlines

How do modern compilers choose which variables to put in registers?

The problem of register allocation This is a very broad subject. The problem of deciding how to map a program with arbitrarily many variables onto a fixed set of registers is known as register allocation, and it has been the subject of much research, study, and engineering effort since the very earliest compilers. One of the canonical approaches, graph coloring, was first proposed in 1981. Countless other approaches and variants have been explored since then, and I cannot hope to cover the full ...

Read more at langdev.stackexchange.com

© News Score  score the news, sort the news, rewrite the headlines