Alan DuBoff wrote:
On Wednesday 18 October 2006 11:41 am, Shao Wu wrote:
I wonder are there any hardware instructions to perform byte swaps (endian
conversions) in SPARC? For example, if I open a data file that is stored
in little-endian format, I would like to be able to read and convert the
data as efficiently as possible. It would be very nice if I can mmap the
data regions (as it were in big endian) and monkey with the data
natives.... but that is too much to ask....
Good reason to use ZFS, then you never have to worry about it, just read and
write the file on whatever architecture.
ZFS only does byte swapping for ZFS metadata not application data. You
really don't want the filesystem doing application data byte swapping on
the fly - since you don't know which apps are written for a given
endianness and which are byte swap aware.
--
Darren J Moffat
_______________________________________________
opensolaris-discuss mailing list
[email protected]