←back to thread

182 points Twirrim | 4 comments | | HN request time: 0.572s | source
Show context
throwaway889900 ◴[] No.41874794[source]
But how many bytes are there in a word?
replies(4): >>41874796 #>>41874838 #>>41875260 #>>41875413 #
wvenable ◴[] No.41874838[source]
"Word" is an outdated concept we should try to get rid of.
replies(4): >>41874888 #>>41874892 #>>41874933 #>>41875850 #
pclmulqdq ◴[] No.41874888[source]
It's very useful on hardware that is not an x86 CPU.
replies(2): >>41874937 #>>41874988 #
1. wvenable ◴[] No.41874937[source]
As an abstraction on the size of a CPU register, it really turned out to be more confusing than useful.
replies(3): >>41874993 #>>41875003 #>>41875078 #
2. bobmcnamara ◴[] No.41874993[source]
Is it 32 or 64 bits on ARM64? Why not both?
3. o11c ◴[] No.41875003[source]
Fortunately we have `register_t` these days.
4. pclmulqdq ◴[] No.41875078[source]
On RISC machines, it can be very useful to have the concept of "words," because that indicates things about how the computer loads and stores data, as well as the native instruction size. In DSPs and custom hardware, it can indicate the only available datatype.

The land of x86 goes to great pains to eliminate the concept of a word at a silicon cost.