------- Comment #6 from rrr6399 at futuretek dot com 2005-10-11 19:20 ------- Many compilers, like the Intel and PGI ones for instance, simply have a -byteswap flag that is set at compile time. That way any unformatted data that is input or output is expected to be switched to Little or Big Endian all the time. This is typically what we've needed over the years. I haven't really seen a case to only byteswap certain files. A run time option would work as well as long as people remember to set the environment variable or whatever.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23815