Messages in this thread | | | Date | Tue, 9 Mar 1999 09:58:54 +0200 (IST) | From | Oren Laadan <> | Subject | Re: Linux/IA-64 byte order |
| |
Hi,
> > Make an empty map for little-endian direct access and make a backing > > map with theactual file. Then install a signal handler to catch > > reads in the empty map, copy a page (or more) with byteswapping, and > > you're done. "Loading" is still extremely fast. > > Yes, "loading" a subsection of the data is still (fairly) fast. But > that doesn't solve the other problem: huge swap space consumption when > you want to access the entire dataset. It's often the case that you > have much more data disc than you have swap disc.
How about this simple solution - write/use a utility which converts the data file from BE to LE (once for every file) ? (of course, you would need to know the exact structure of the binary data in the file for that).
This worked for me when I needed to compile and execute applications that used to run on Sparc, and required the original binary data files :-)
Oren
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |