News for hackers. Stuff that matters.
Re:The x86 CPU: From 4004 to 486 by drob518 on Wednesday November 18, 2026 @12:06PM (#50548850)
Talking about little endian…

> This inverted storage, which was to haunt all processors evolved from the 8008, was a result of compatibility with the Datapoint bit-serial processor.

Am I the only one who thinks little endian is the right way to store things? Other than reading multi-byte numbers in order in hex dumps and things like that, I don’t see much advantage to big endian.

Re:The x86 CPU: From 4004 to 486 by hikarudo on Wednesday November 18, 2026 @12:09PM (#50548891)
Me too, little endian makes more sense.
Re:The x86 CPU: From 4004 to 486 by dmitrygr on Wednesday November 18, 2026 @12:34PM (#50549329)
Yes. Especially for lower-bit-width chips which must serially do longer-bit-width-math, LE makes sense, since the pieces you work with are in memory in proper order.
Re:The x86 CPU: From 4004 to 486 by GeorgeTirebiter on Wednesday November 18, 2026 @01:19PM (#50549959)
The way the IBM 1401 does it, because it's a variable word-length machine (fields being delineated by Word Marks, which is a bit in each core location specifically for marking the end of a field / instruction).

So the number '123' is stored in sequential memory locations: x, x+1, x+2 with a word mark under the '1'.

To add (assembly: A X,Y) e.g. '456' to said number at y, y+1, y+2 (in this case the 4 need NOT have a word mark (but usually does) because a word mark in either field ends the operation) the machine starts at the high-order address -- so it starts at address x+2 and y+2, develops any carry, applies that to x+1 and y+1, adds, and finally moves to the hundreds digit, adding any carry from the tens. (The destination address holds the sum in this case, '456' goes to '579')

Also, to move '123' somewhere, you specify the address of the '3' and the field is moved right-to-left to the destination (decrementing the internal pointer, and stopping when finding a word mark).

So, it more or less was Big Endian, but was still able to use a serial ALU by starting at the highest address!

Re:The x86 CPU: From 4004 to 486 by tosapple on Wednesday November 18, 2026 @06:29PM (#50553837)
big-endian is reminiscent of serialization and stack orientation.
Re:The x86 CPU: From 4004 to 486 by hyperman1 on Wednesday November 18, 2026 @02:25PM (#50550847)
It is our numeric system that is backward. 123 should be written 321. But, Arab is written right to left, and we took their convention when we took their numbers.
Re:The x86 CPU: From 4004 to 486 by userbinator on Thursday November 19, 2026 @12:14AM (#50556314)
Yes, and it's also consistent with normal bit numbering: bit n has place value 2^n, while byte n has place value 256^n. The vast majority of BE processors actually have LE bit numbering.

The only exception is IBM, which used both BE bit and byte numbering. (Bit 0 is the most significant bit, and its value depends on the width of the data in question --- exposing the major disadvantage of BE, i.e. a length-dependent term.)

An old adage I've heard and found useful: "Little endian is Logical; Big endian is Backwards."