----- Original Message -----
From: John Summerfield <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 05, 2000 16:39
Subject: Re: SMP question ?


>
> >
> > This sort of thing is inherently a non-portable problem like
> > detecting endianness and other such things.  It is unlikely any
>
> Detecting endianness isn't hard to do portably. I did it about 20 years
ago,
> in COBOL, when coding for a Honeywell mini. The owners didn't know whether
it
> was beg or little..
>
> Map an area as int and as char[]. Set it =1 and see where the value's
stored.

Uh, you realize that for some architectures it isn't 1-2-3-4 if you
store 0x01020304 into a double-word.  It might be 2-1-4-3 or
something else perverse.

-- Julie (yours for obscure stupid hardward architectures ...)



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to