• @[email protected]
    link
    fedilink
    23
    edit-2
    1 year ago

    They do in embedded when you are polling a read only register. The cpu can change the register but writing to it does nothing.

    • @[email protected]
      link
      fedilink
      11 year ago

      That seems like a better fit for an intrinsic, doesn’t it? If it truly is a register, then referencing it through a (presumably global) variable doesn’t semantically align with its location, and if it’s a special memory location, then it should obviously be referenced through a pointer.