This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to force C51 to put a variable in a register

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.

Parents
  • 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.

Reply
  • 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.

Children
No data