cm0002@lemmy.world to Programmer Humor@programming.dev · 7 days agoTell me the truth ...piefed.jeena.netimagemessage-square162fedilinkarrow-up11.17Karrow-down117
arrow-up11.15Karrow-down1imageTell me the truth ...piefed.jeena.netcm0002@lemmy.world to Programmer Humor@programming.dev · 7 days agomessage-square162fedilink
minus-squaretimhh@programming.devlinkfedilinkarrow-up1arrow-down1·8 hours agoWrong again. It depends on the CPU. They can absolutely read a single byte and they will do if you’re reading from non-idempotent memory. If you’re reading from idempotent memory they won’t read a byte or a word. They’ll likely read a whole cache line (usually 64 bytes). And if you read the ARM article you linked, it literally says so. Where? Thus any compiler worth their salt will align all byte variables to words for faster memory access. No they won’t because it isn’t faster. The CPU will read the whole cache line that contains the byte. RTFM Well, I would but no manual says that because it’s wrong!
minus-squareAux@feddit.uklinkfedilinkEnglisharrow-up1·2 hours agoThe fuck are you talking about, kiddo? Read the fucking docs!
Wrong again. It depends on the CPU. They can absolutely read a single byte and they will do if you’re reading from non-idempotent memory.
If you’re reading from idempotent memory they won’t read a byte or a word. They’ll likely read a whole cache line (usually 64 bytes).
Where?
No they won’t because it isn’t faster. The CPU will read the whole cache line that contains the byte.
Well, I would but no manual says that because it’s wrong!
The fuck are you talking about, kiddo? Read the fucking docs!