lkml.org 
[lkml]   [1999]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.123 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site