On 2015-01-20 15:08:52 -0600, David Champion wrote:
> BE and LE may pack structs differently, but I believe members of a
> union should have the same alignment even if of differing size.  This
> should be safe for byte transposition between a char[] and an int.  (You
> can't port the cache file across endianness, but that's true for other
> reasons.)

Couldn't the cache file be made architecture-independent?

This could be useful for users working with a shared file system
(such as NFS) on an heterogeneous network.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to