byteord.h 535 B

123456789101112131415161718192021
  1. /* byteord.h - byte order dependencies for C compiler, assembler, linker */
  2. /* Copyright (C) 1994 Bruce Evans */
  3. /* These are for the targets of everything and for linker source too. */
  4. #ifdef I8086
  5. # define INT_BIG_ENDIAN 0
  6. # define LONG_BIG_ENDIAN 0 /* except longs are back to front for Xenix */
  7. #endif
  8. #ifdef I80386
  9. # define INT_BIG_ENDIAN 0
  10. # define LONG_BIG_ENDIAN 0
  11. #endif
  12. #ifdef MC6809
  13. # define INT_BIG_ENDIAN 1 /* byte order in words is high-low */
  14. # define LONG_BIG_ENDIAN 1 /* byte order in longs is high-low */
  15. #endif