home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / arch / 12087 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  2.2 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!lsl!snail
  2. From: snail@lsl.co.uk
  3. Newsgroups: comp.arch
  4. Subject: Re: big + little endian (was: Comparison of Alpha, MIPS ..)
  5. Message-ID: <1993Jan5.171511.2890@lsl.co.uk>
  6. Date: 5 Jan 93 17:15:11 GMT
  7. References: <1992Dec29.044012.1@cc.curtin.edu.au> <3623363@zl2tnm.gen.nz> <28164@dog.ee.lbl.gov> <1hquujINNmov@fido.asd.sgi.com>
  8. Organization: Laser-Scan Ltd., Cambridge
  9. Lines: 33
  10.  
  11. In article <1hquujINNmov@fido.asd.sgi.com>, pj@sam.wpd.sgi.com (Paul Jackson) writes:
  12. > In article <28164@dog.ee.lbl.gov>, torek@horse.ee.lbl.gov (Chris Torek) writes:
  13. > |> 01101001 may mean `105' (big-endian) or `150' (little-endian)
  14. > Big and little endian refer to the order of bytes within words,
  15. > not to the order of bits within bytes.
  16.  
  17. That is a convention in *your* head. There is no reason why big endian can't
  18. be made to mean to apply to bits if you want. For the purposes of his example, 
  19. he is correct. For human interpretation of binary (at least how I was taught
  20. at school :-) ), you are correct. For various computer architectures, who
  21. knows? I've seen some odd boxes in my time; I'm not even sure it makes sense
  22. at this level anyway, since the circuit designers will ensure the correct
  23. bits get where they're going.
  24.  
  25. If you remember my post to do with date format a while back I referred to
  26. big-endian and little-endian dates (hmmm, maybe in private email I did, maybe
  27. not on the net). Big and little endian is just a concept.
  28.  
  29. I do think, in practice, it may be confusing to deal with different ordering
  30. of bits in bytes, but then again in X, the XImage format can have data in
  31. 8, 16, 32 bit formats, with MSB or LSB ordering of bytes, and with LSB and MSB
  32. ordering of bits too! Total: 3 * 2 * 2 formats = 12 possible formats for
  33. XImage data. This is an exmaple of big and little endian byte and bit ordering.
  34. This was provided to ensure that most (if not all) systems could represent
  35. XImages efficiently for the particular processor used.
  36. -- 
  37. snail@lsl.co.uk      
  38.  
  39. "Washing one's hands of the conflict between the powerful and the powerless
  40.  means to side with the powerful, not to be Neutral."
  41.                                                      Quote by Freire.
  42.                                                      Poster by OXFAM.
  43.