• rooster_butt@lemm.ee
    link
    fedilink
    arrow-up
    23
    ·
    edit-2
    9 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
      arrow-up
      1
      ·
      9 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.