summaryrefslogtreecommitdiff
path: root/as/byteord.h
diff options
context:
space:
mode:
Diffstat (limited to 'as/byteord.h')
-rw-r--r--as/byteord.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/as/byteord.h b/as/byteord.h
new file mode 100644
index 0000000..a0d14e1
--- /dev/null
+++ b/as/byteord.h
@@ -0,0 +1,18 @@
+/* byteord.h - byte order dependencies for C compiler, assembler, linker */
+
+/* These are for the targets of everything and for linker source too. */
+
+#ifdef I8086
+# define BIG_ENDIAN 0
+# define LONG_BIG_ENDIAN 0 /* except longs are back to front for Xenix */
+#endif
+
+#ifdef I80386
+# define BIG_ENDIAN 0
+# define LONG_BIG_ENDIAN 0
+#endif
+
+#ifdef MC6809
+# define BIG_ENDIAN 1 /* byte order in words is high-low */
+# define LONG_BIG_ENDIAN 1 /* byte order in longs is high-low */
+#endif