• @rooster_butt@lemm.ee
    link
    fedilink
    22
    edit-2
    3 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@lemmy.world
      link
      fedilink
      13 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.