Declaring a variable register is a suggestion to the compiler so that, if possible, a specific automatic variable is assigned, if possible.
But how does the compiler decide when to put the registration variable in the CPU register? What algorithm / mechanism does it use to solve?
Thank,
Naveen
source
share