summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/include/nuttx/compiler.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h
index db66d037a..f78f5c261 100644
--- a/nuttx/include/nuttx/compiler.h
+++ b/nuttx/include/nuttx/compiler.h
@@ -1,7 +1,7 @@
/****************************************************************************
* include/nuttx/compiler.h
*
- * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008, 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -99,6 +99,20 @@
# define DSEG
# define CODE
+#ifdef __m32c__
+/* Select the small, 16-bit addressing model */
+
+# define CONFIG_SMALL_MEMORY 1
+
+/* Long and int are not the same size */
+
+# define CONFIG_LONG_IS_NOT_INT 1
+
+/* Pointers and int are the same size */
+
+# undef CONFIG_PTR_IS_NOT_INT
+
+#else
/* Select the large, 32-bit addressing model */
# undef CONFIG_SMALL_MEMORY
@@ -110,6 +124,7 @@
/* Pointers and int are the same size */
# undef CONFIG_PTR_IS_NOT_INT
+#endif
/* GCC supports inlined functions */