- A register declaration advises the compiler that the variable in question will be heavily used
- Register variables are to be placed in machine registers which may result in smaller and faster programs. ( but compilers are free to ignore the advice)
- Register declaration can only be applied to automatic variables and to the formal parameters of a function
No comments:
Post a Comment