home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!cbmvax!jesup
- From: jesup@cbmvax.commodore.com (Randell Jesup)
- Newsgroups: comp.arch
- Subject: Re: Configurable/Switchable Endianess
- Message-ID: <34741@cbmvax.commodore.com>
- Date: 29 Aug 92 23:48:54 GMT
- Article-I.D.: cbmvax.34741
- References: <5752@armltd.uucp> <PRENER.92Aug27194052@prener.watson.ibm.com>
- Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
- Distribution: comp
- Organization: Commodore, West Chester, PA
- Lines: 34
-
- >>I am interested in microprocessors that are able to execute code, or
- >>process data in either endianness, and how they achieve this.
- >> The ATT Hobbit has switchable data
- >>endianness (how do you switch ?), does this mean that the endianess of
- >>code is fixed ? Does anyone implement a "load data of the other
- >>endianness instruction" ?
-
- When implementing the RPM-40, we discussed this, and basically the
- only difference as far as we were concerned was the word/byte alignment
- module that takes data from the bus and throws it into registers. Just
- implement 2 of them and switch between them as needed, either by pin,
- register bit, or instruction.
-
- The amusing thing I noticed was that the chip designers tended to
- use little-endian without thinking, and didn't really care much, while the
- software guys cared a lot (and wanted big-endian). I have a pet theory (almost
- undoubtably wrong) about this: chip designers rarely look at memory dumps
- or displays; most of their interaction with memory was drawing memory arrays
- on paper and whiteboard. When drawing, they tended to put 0 at the bottom
- right, while the software people (used to looking at memory print on a screen)
- put 0 at upper left. The difference in those two diagrams is basically the
- difference between little-endian and big-endian (assuming you read it from
- left to right, as most people do).
-
- Yeah, I know, it's wrong, half-baked, etc. _Please_ no endian wars,
- it was meant to be amusing, not restart old battles.
-
- --
- "Rev on the redline, you're on your own; seems like a lifetime, but soon it's
- gone..." Foreigner
- -
- Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
- {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup
- Disclaimer: Nothing I say is anything other than my personal opinion.
-