[Haskell-cafe] Re: Endianess
Aaron Denney
wnoise at ofb.net
Tue May 13 15:28:01 EDT 2008
On 2008-05-13, Ketil Malde <ketil at malde.org> wrote:
> Jed Brown <jed at 59A2.org> writes:
>
>> This, of course, is because `od -x' regards the input as 16-bit integers. We
>> can get saner output if we regard it is 8-bit integers.
>
> Yes, of course. The point was that for big-endian, the word size
> won't matter. Little-endian words will be reversed with respect to
> the normal (left-to-right, most significant first) way we print
> numbers.
Right. Because we print numbers backwards.
--
Aaron Denney
-><-
More information about the Haskell-Cafe
mailing list