__main_register.h 677 B

12345678910111213141516171819
  1. /*
  2. The register Storage Class
  3. The register storage class is used to define local variables that should be stored
  4. in a register instead of RAM.
  5. This means that the variable has a maximum size equal to the register
  6. size (usually one word) and can't have the unary '&' operator applied to it
  7. (as it does not have a memory location).
  8. {
  9. register int miles;
  10. }
  11. The register should only be used for variables that require quick access
  12. such as counters. It should also be noted that defining 'register'
  13. does not mean that the variable will be stored in a register.
  14. It means that it MIGHT be stored in a register depending on hardware and
  15. implementation restrictions.
  16. */