Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Big Endian,...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 14 Topic 9587 of 9828
Post > Topic >>

Re: Big Endian, Little Endian.

by "Jonathan Thornburg [remove -animal to reply]" <J.Thornburg@[EMAIL PROTECTED] May 11, 2008 at 09:46 AM

clemd@[EMAIL PROTECTED]
 wrote:
> Not possible. Depending on the CPU and the memory system, the byte
> order may be dynamic, or it may vary among sections of memory. Or it
> may be "mixed endian" (not strictly big or little), or have no
> endianness.

Sohail Somani <sohail@[EMAIL PROTECTED]
> wrote:
> Wow. Do you have an example?

The Digital PDP-11 and VAX systems (= arguably the most popular and
influential minicomputers in the world for the 1960s-70s and 70s-80s
respectively) were little-endian for integers, but stored floating-point
numbers in memory in a mixed-endian order.  A floating-point number
(either IEEE or one of the VAX-only formats) which might be the register
bit-pattern 0x87654321 would be stored in memory with bytes in the order
(if my slight dim memories haven't faded too badly) first 2, then 1, 4,
3, 6, 5, 8, and finally 7.  The reasons for this go back to backwards
compatability with early PDP-11 systems with had 16-bit memory buses.

--
-- "Jonathan Thornburg [remove -animal to reply]"
<J.Thornburg@[EMAIL PROTECTED]
>
   School of Mathematics, U of Southampton, England
   "Space travel is utter bilge" -- common misquote of UK Astronomer Royal
                                    Richard Woolley's remarks of 1956
   "All this writing about space travel is utter bilge.  To go to the
    moon would cost as much as a major war." -- what he actually said

      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 14 Posts in Topic:
Big Endian, Little Endian.
Le Chaud Lapin <jaibud  2008-05-09 21:25:48 
Re: Big Endian, Little Endian.
Sohail Somani <sohail@  2008-05-10 06:14:24 
Re: Big Endian, Little Endian.
"clemd@[EMAIL PROTEC  2008-05-10 06:14:27 
Re: Big Endian, Little Endian.
Sohail Somani <sohail@  2008-05-10 14:08:50 
Re: Big Endian, Little Endian.
"Bo Persson" &l  2008-05-11 09:46:25 
Re: Big Endian, Little Endian.
"Jonathan Thornburg   2008-05-11 09:46:15 
Re: Big Endian, Little Endian.
"clemd@[EMAIL PROTEC  2008-05-13 11:57:27 
Re: Big Endian, Little Endian.
Ronald Natalie <ron@[E  2008-05-13 21:07:16 
Re: Big Endian, Little Endian.
Andy Champ <no.way@[EM  2008-05-13 21:09:23 
Re: Big Endian, Little Endian.
Carl Barron <cbarron41  2008-05-13 21:11:36 
Re: Big Endian, Little Endian.
Greg Herlihy <greghe@[  2008-05-14 08:34:46 
Re: Big Endian, Little Endian.
=?ISO-8859-1?Q?Daniel_Kr=  2008-05-14 08:34:37 
Re: Big Endian, Little Endian.
Martin Bonner <martinf  2008-05-14 11:39:46 
Re: Big Endian, Little Endian.
Alex Shulgin <alex.shu  2008-05-14 17:52:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 15:49:59 CDT 2008.