LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 09-22-2004, 09:32 PM   #1
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30
big endian little endian?


can i know which well known cpu use big endian and little endian.

like x86 cpu use little endian and...

if my question make sense
 
Old 09-22-2004, 10:01 PM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

yes,it depends on the architecture of cpu

are u asking for some appliaction ,program which can tell whether the CPU is little endian or big endian???

regards
 
Old 09-22-2004, 10:03 PM   #3
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
mac's = big endian
x86 = little endian

http://www.cs.umass.edu/~verts/cs32/endian.html
 
Old 09-23-2004, 01:16 AM   #4
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by masand
hi there

yes,it depends on the architecture of cpu

are u asking for some appliaction ,program which can tell whether the CPU is little endian or big endian???

regards
no just got shocked when my program work on a x86 and not another machine I tried ported to.

so just want to know in general which group used which.

From google:
big-endian: Motorola 68000 and SPARC.

little-endian: 650x and Intel x86.

either: ARM, PowerPC and MIPS.
 
Old 09-23-2004, 06:04 AM   #5
db391
Member
 
Registered: Jun 2004
Location: Britain
Distribution: Slackware
Posts: 186

Rep: Reputation: 31
the endianness is the word order.

so little endian is 'back-words' (intel chips)

ie, hex number 12345678 is 78 56 34 12 on the machine code level on little endian chips. (it's true!! check this in a hex editor)
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Big O, Big Omega, and Big Theta oulevon Programming 7 05-26-2010 07:18 AM
What is all this big endian-little endian stuff about? vdemuth Linux - Newbie 1 04-28-2004 02:16 AM
YMF724F PPC Big-Endian ravvar Linux - Hardware 0 10-25-2003 04:01 AM
ALSA 0.9.8 YMF724F PPC Big Endian ravvar Linux - Hardware 0 10-24-2003 09:59 AM
big BIG javascript & loading time luigi Programming 3 09-10-2001 03:53 AM


All times are GMT -5. The time now is 07:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration