Re: Various Qs about Intel and AppleScript
Re: Various Qs about Intel and AppleScript
- Subject: Re: Various Qs about Intel and AppleScript
- From: "Douglas P. McNutt" <email@hidden>
- Date: Wed, 11 Jan 2006 09:49:01 -0700
At 14:15 +0100 1/11/06, jj wrote:
>PowerPC, it will compile as 0xFE; while the Intel machine will read 0xEF:
>239 (???)
The endian operation operates on 8 bit bytes and never on 4 bit nibbles.
00FE might be read as FE00 in 16 bits but FE won't become EF in 8 bits.
The real question is the behavior of 32 and 64 bit assemblies of 8 bit bytes.
Does ABCD <-> BADC or is it ABCD <-> DCAB? (Those are bytes, not hex digits.)
It appears that Microsoft and Sun behave differently even at the 32 bit level..
It's pretty clear that a 16, 32, or 64 bit integer does not have any byte reversal associated with it from a programmer's point of view. The sign bit is still closest to the most significant bit. The problem occurs only when the integer is split into bytes as a part of a communication process like moving data to a disk.
And while you're at it? Do you put volumes on your bookshelf in ABCD order or do you put them there so the last page of volume A is close to the first page of volume B as you would read them?
--
--> From the U S of A, the only socialist country that refuses to admit it. <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden