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

  1. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!dog.ee.lbl.gov!news!nosc!crash!orbit!lmt!ccdtc.lmt.com!markg
  2. From: markg@county.lmt.mn.org (Mark Gilbert)
  3. Newsgroups: comp.arch
  4. Subject: Re: big + little endian (was: Comparison of Alpha, MIPS ..)
  5. Message-ID: <markg.79.726169747@county.lmt.mn.org>
  6. Date: 4 Jan 93 17:49:07 GMT
  7. References: <1992Dec29.044012.1@cc.curtin.edu.au> <3623363@zl2tnm.gen.nz> <WAYNE.92Dec30093950@backbone.uucp>
  8. Sender: usenet@lmt.mn.org
  9. Organization: LaserMaster R&D, Minneapolis, MN  USA
  10. Lines: 51
  11. Nntp-Posting-Host: ccdtc.lmt.com
  12.  
  13. In article <WAYNE.92Dec30093950@backbone.uucp> wayne@backbone.uucp (Wayne Schlitt) writes:
  14. >From: wayne@backbone.uucp (Wayne Schlitt)
  15. >Subject: Re: big + little endian (was: Comparison of Alpha, MIPS ..)
  16. >Date: 30 Dec 92 15:39:50 GMT
  17.  
  18. >In article <1hquujINNmov@fido.asd.sgi.com> pj@sam.wpd.sgi.com (Paul Jackson) writes:
  19. >> |> 01101001 may mean `105' (big-endian) or `150' (little-endian)
  20. >> 
  21. >> Big and little endian refer to the order of bytes within words,
  22. >> not to the order of bits within bytes.
  23. >> 
  24.  
  25. >Big and little endian refer to the order of sub-units within units,
  26. >not just bytes and words.  
  27.  
  28. >You can order bits within bytes either way, bytes within words, and
  29. >words within double words.  Various computers systems have made
  30. >different choices at all of those levels.  The ordering of bits within
  31. >bytes has pretty much standardized on the little-endian format.
  32.  
  33.  
  34. On a system that addresses bytes, the bits within the byte do not have an 
  35. ordering, except in a graphics sub-system, where the msb can be displayed on 
  36. the left or the right.  (Assuming a pixel size smaler than 8 bits.)
  37.  
  38. Unfortunately, on mainstream PC graphics subsystems, the most significant 
  39. bit of a byte is displayed on the left, even though the system is othewise 
  40. little-endian.  This forces software to perform non-trivial operations on  
  41. raster images a byte at a time.  If a unit larger than a byte is read, the 
  42. bits within that unit are mis-ordered.
  43.  
  44.  
  45. I have identified the root of this whole big-endian/little-endian debate.  
  46. The conflict is is between text and numbers.  We read left to right.  But, 
  47. if you were to number the digits of an integer, you would do it right to 
  48. left.  The one's digit would be 0, the ten's digit, 1, etc.
  49.  
  50. This should never have been the case.  We adopted our number system from the 
  51. Arabs, and the Arabs read right to left.  For them, the direction of reading 
  52. text and numbers is CONSISTENT.  The whole problem arose because we failed 
  53. to reverse the numbering system when we borrowed it from the Arabs.
  54.  
  55. I propose that we now correct this historical oversight.  Let us write 
  56. numbers least significant digit first.  The bang symbol can be used to 
  57. replace the decimal point, in order to distinguish little-endian numbers 
  58. from big-endian.  The integer six hundred and fifty four should now be 
  59. written !456.  Sixteen dollars and twenty five cents is now $ 52!61.
  60.  
  61.  
  62. Sincerely,
  63. Mark Gilbert
  64.