541
you are viewing a single comment's thread
view the rest of the comments
[-] rooster_butt@lemm.ee 23 points 9 months ago* (last edited 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 1 points 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.

this post was submitted on 25 Mar 2024
541 points (98.6% liked)

Programmer Humor

19817 readers
3 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS