Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Change endianess on G4?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jun 2, 2009, at 1:25 AM, der Mouse wrote:

On the other hand, it's very clear that the "native" byte ordering of
the ppc family is big-endian, and lots of operations take a
performance hit in little-endian mode.

Never mind performance hit; it doesn't even work rationally. It's been
a while since I read up on ppc little-endian mode, but as I recall: I
suspect someone tried to design a little-endian mode that allowed
sharing memory between endiannesses without needing to byteswap data,
which is not a coherent desire.  They came impressively close, but,
since it's not a self-consistent thing to do, the result is somewhat
broken.

I'm not sure about all of that - as I say, it's been a while - but I'm
sure it didn't work sanely, and not very much like a truly
little-endian machine.

IIRC the endianness bit in the MSR only has an effect on data operations, whatever goes through the instruction pipe stays big endian.

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBSiX0qcpnzkX8Yg2nAQIRIwf/SVAvb0ru/if+49hpt9mRl3ra35r2iKE6
AeIuD4tPVSZqSxGdVz1K5jxxnRz5B8sS3fsuVk0r6HPFdgN5f+tf+ZgnemONIy1K
YH3uiZwe6n4lI6E6IMMBedPeZ93lNErgoIlJaT++/H571k6GhTeCSr0cmU7D1RnM
C1Ms+UiDUuXQAcnFNRvCiqqNalScWUCjgiXW1nGRyv8vAeeE1cM+NkwrK4FXNjoD
yCser01xOXCl1PXXCEmUBY3SeAkajl3F8wysdzFC5Bx1yvIQRfx7BUTu+L2RkHps
0mhhjc+XAgLzuPh23hrTZCExB6Yj0YGsEEvoNYXvY21WFJxy+fOt2Q==
=o6Vr
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index