Practically,
register
has only ever been a hint to the compilers that compilers are permitted to largely ignore, and most modern compilers largely ignore the hint because they can do a better job of optimisation than programmers. Practically, the net effect of using
register
has been little more than a means to preventing taking the address of a variable. Rather than worrying about micro-optimisations (like using
register
) focus on finding and using better algorithms - a programmer can achieve much more by picking better algorithms and letting the compiler sweat the small stuff. —
Peter 55 secs ago