Re: [Linux-ia64] Endian problems when migrating program from HP-UX to RedHat Linux

Jim Wilson
2001-04-18T19:03:56Z

Endianness is a feature of the system (CPU+OS). You can not change it by
using a compiler option.

ia64-linux is little-endian. If you want your program to run on ia64-linux,
then you have to make it work on little-endian systems.

It would be possible to create a big-endian ia64-linux OS, but that would be
a great deal of work, and is not a practical solution.

If you just want to run your program on IA-64 hardware, and don't care about
the OS, then you could use an ia64-hpux system, which is big-endian.

Jim