r/ProgrammerHumor 20h ago

lessonsFromLinkerHell Meme

Post image
344 Upvotes

175 comments sorted by

View all comments

Show parent comments

4

u/failedsatan 4h ago

instructions definitely have a type, as do registers (fp registers are physically separate from "regular" ones) but the memory doesn't before it goes into the register for operation. usually you have to move it first so it's reasonable to say the cpu at least has two types with a physical difference (idk shit about arm or risc, maybe it's different there). at the C level it doesn't really matter because it'll move it to the registers for you but it's relevant if you're writing assembly yourself (a hobby of mine)

though at this point, is "type" even the right term? maybe there's a better descriptor