• @[email protected]
    link
    fedilink
    23
    edit-2
    8 months 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.

    • @QuaternionsRock
      link
      18 months 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.