Hi all, I want to use registers for a specific variable. How can I force C51 to put the variable in a register? I tried "register" keyword, but it did not worked.
The register keyword is only a hint to the compiler - the compiler is free to ignore it (check K&R!) C51 has its own specific uses for registers; in particular, for passing parmeters - check the manual. You can use NOREGPARAMS to prevent C51 using registers for passing parameters.