Migrating from Linux for big endian distributions to Linux for little endian distributions
You must consider some factors when migrating your applications from POWER8® big endian systems.
- To help migrate programs from big endian systems, you can use the -qaltivec=be or -qaltivec=le option to toggle the vector element sequence in registers to big endian or little endian element order.
- Starting from IBM® XL C/C++ for Linux, V13.1.2, legacy macros __IBMCPP__, __xlC__, __xlC_ver__, __IBMC__, and __xlc__ are predefined by the compiler with the -qxlcompatmacros option. This option helps you migrate programs from IBM XL C/C++ for Linux, V13.1 or earlier for big endian distributions to the current compiler version for little endian distributions.