Type modifier: Type modifier

Asked

Viewed 79 times

5

The type modifier register I have instructed the compiler to store the variable directly in the registers, however I do not see much its use in codes, this put, I have the following doubts:

In what context is recommended its use and when not to use it

1 answer

5


Essentially it is no longer needed. Compilers are able to decide when to put in the register better than the programmer. Its use can even prevent some optimizations that can bring better benefit. In fact most compilers ignore it, if not totally, at least most of the time, unless the optimizations are turned off, then it might be useful, but because it would do this?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.