The compiler knows: http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html

    /* Test for a little-endian machine */
    #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__