4 ms·
Most modern processors read their native word size from memory internally. And that's it. So to read a 16 bit word on a machine with a 64 data bus, that is spl
by retrac 4y ago
Most modern processors read their native word size from memory internally. And that's it. So to read a 16 bit word on a machine with a 64 data bus, that is split over two 64 bit words (e.g. addresses 0x1007 and 0x1008) two 64-bit reads are performed.
It's standard to store a byte or half-word in a struct with a full 32-bit or 64-bit word, for performance reasons.
Some RISC machines can't even do such sub-word accesses at all. Byte and half-word load/store are an optional extension to the RISC-V base instruction set.
- deleted 4y ago[deleted]
- saagarjha 4y agoMost modern processors do reads on the level of cache lines.