Skip to contentSkip to conversation

BIG ENDIAN or LITTLE ENDIAN

DISCUSSION Michael Norton 5 participants 5 messages Oct 28, 2000 – Oct 29, 2000

lore
Share & tools
lore
#0 lore raw

hi,

I am working on some code that is particuliar of byte ordering. Is the G4, running PPC 2000 a BIG_ENDIAN machine?

thanks,

Mike

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw

yes, it's big endian

Quoted 2 lines · Michael Norton

I am working on some code that is particuliar of byte ordering. Is the G4, running PPC 2000 a BIG_ENDIAN machine?

--
Tom Vier <[email protected]>
DSA Key id 0x27371A2C

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Michael Norton
Quoted 4 lines · Michael Norton

hi,

I am working on some code that is particuliar of byte ordering. Is the G4, running PPC 2000 a BIG_ENDIAN machine?

I think this one was answered before, but...

LinuxPPC (and for that matter, most if not all PPC operating systems) run in big endian. The answer to your question in a word is "yes".

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw

Re: NT PPC

In reply to David A. Gatwood
Quoted 5 lines · David A. Gatwood

All PowerPC machines running Linux are big-endian, by nature. There's a little-endian hack... err... mode in the processor, but I'm not aware of any OS that uses it except possibly the ill-fated Windows NT port that was never released.... :-/

It was released and it actually worked. If you have an NT 4.0 CD it's on there.

The trick was finding software... SP1 and IE 2.0 don't take you very far.

-Hollis

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
In reply to Michael Norton
Quoted 2 lines · Michael Norton

I am working on some code that is particuliar of byte ordering. Is the G4, running PPC 2000 a BIG_ENDIAN machine?

All PowerPC machines running Linux are big-endian, by nature. There's a little-endian hack... err... mode in the processor, but I'm not aware of any OS that uses it except possibly the ill-fated Windows NT port that was never released.... :-/

David

---------------------------------------------------------------------
Check out my weekly web comic:
http://www.techmagazine.org

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/