In numerical computation in mind, it seems to me that register storage class (which is currently deprecated and removed from the standard) was a good hint for optimization. Was there any specific reason for explicitly removing it from the standard?
Because it is pretty much useless nowadays. register
keywords is nothing more then a hint to the compiler that "you should try to give me fast access to this variable". But compilers are much better than you at measuring such things, especially if you're not actually benchmarking your code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With