Article View: comp.sys.next.hardware
Article #931Re: Byte Swapping (Was: New RISC workstations)
From: John Jay Feiler
Date: Thu, 05 Nov 1992 06:58
Date: Thu, 05 Nov 1992 06:58
34 lines
1816 bytes
1816 bytes
In article <1992Nov2.195519.612@netcom.com> abell@netcom.com (Steven T. Abell) writes: > eboltz@jhunix.hcf.jhu.edu (Eric Scott Boltz) writes: > > > As far as Intel CPUs go, aren't they the ones that expect multiple-byte > > data to have bytes swaped? - Yuck. > > As far as I'm aware, nobody has *ever* made a machine that got byte-ordering > right in combination with several other crucial factors. This has had an > unpleasant effect on sofware quality. [munch] > > The design I suggest is very different from what we're used to, but it works > just as well in the machine, and better in our heads when we're writing > programs. That translates into fewer bugs. > > 0) All memory diagrams are written sideways, > with the most-significant bit, byte, word, whatever, on the left. > > 1) The base address of a string, struct, array is its *end*, not its beginning. Unfortunately, many string operations (formatting strings, strcat, etc) will grow the length of the string, and we than have to copy the entire string to a buffer, operate on it, then put it back with its end in the right place. Sigh...... > Yes, I know, it's weird, but only because *everybody* got it wrong, > and that's what we've become accustomed to. Yuck. > > Steve abell@netcom.com
Technical Details
Message-ID:
<1992Nov5.065817.4662@relief.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!know!hri.com!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!rpi!scott.skidmore.edu!psinntp!psinntp!relief!jjfeilerReferences:
<1992Nov2.195519.612@netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!know!hri.com!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!rpi!scott.skidmore.edu!psinntp!psinntp!relief!jjfeiler From: jjfeiler@relief.com (John Jay Feiler) Newsgroups: comp.sys.next.hardware Subject: Re: Byte Swapping (Was: New RISC workstations) Message-ID: <1992Nov5.065817.4662@relief.com> Date: 5 Nov 92 06:58:17 GMT References: <1992Nov2.195519.612@netcom.com> Sender: jjfeiler@relief.com Reply-To: jjfeiler@relief.com Organization: relief consulting Lines: 34