>From what I can find with a few searches, not in sparcv7/v8 (32-bit), but >sparcv9 (64-bit) has instruction variants that will not swap bytes but will simply correctly access (didn't get as far as store, don't know about that) little-endian data. So if you were writing a 64-bit sparcv9 assembler program, it might be possible to mmap() some little-endian data and work with it as-is (although sparcv9 alignment constraints rather than the perhaps more forgiving x86/x64 ones might apply?).
What I could find wasn't much, and wasn't organized in ways that I found helpful; but I haven't looked at assembly on anything since the Z80 and mc68k, and not much then. If you have the Sun compiler, you should also have a more generic (but less efficient) set of conversion functions described in convert_external(3m). There's got to be some sparc assembler hotshots kicking around here somewhere... This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list [email protected]
