3 ms·
The author is definitely wrong about one thing (probably several, but who's counting): "There is actually a relatively easy fix: if we insist on reading nu
by fargle 3y ago
The author is definitely wrong about one thing (probably several, but who's counting):
"There is actually a relatively easy fix: if we insist on reading numbers with the most significant digit on the right (which we do), and the computer insists on storing less significant components first (which it does), these two desires can be reconciled by printing the hex dump from right to left"
Nope, that won't work. The reason is that you don't know whether the items in the hex dump are bytes, words, dwords, qwords, etc.
If your hex dump was all 32 bit words, it would kinda work, but the addresses would be "swizzled" (03 02 01 00 07 06 05 04, etc. guh!)
But what about hexdump("hello world!") which would become
lleh ow o !dlr
There's really no fix. Hex dumps on a byte oriented computer must be oriented in a consistent way wrt. address. The only think I can think of is some kind of hover or alternate view if you highlight a series of bytes.