I'm reading the book C++ How to Program Seventh Edition by Deitel and Associates Inc. It's talking about storage classes and I had a question about what it's saying about register variables.
What do they mean by "high-speed hardware registers"? I can't figure out what they are talking about.
The storage-class specifier register can be placed before and automatic variable declaration to suggest that the compiler maintain the variable in one of the computer's high-speed hardware registers rather than in memory. If intensely used variables such as counters or totals are kept in hardware registers, the overhead of repeatedly loading the variables from memory into the registers and storing the results back into memory is eliminated.
What do they mean by "high-speed hardware registers"? I can't figure out what they are talking about.