* device/include/malloc.h: Added z80 and gbz80 support.
[fw/sdcc] / device / include / asm / gbz80 / features.h
index 8abaeb3fa84bbdbcb743cbe10e9c2edddc7d117f..fd9dc1ef8fcfdc6f75a3bbf5685c9bbf3eaffc28 100644 (file)
@@ -1,9 +1,21 @@
-/** GBZ80 specific features.
+/** Z80 specific features.
  */
-#ifndef __SDC51_ASM_GBZ80_FEATURES_H
-#define __SDC51_ASM_GBZ80_FEATURES_H   1
+#ifndef __SDC51_ASM_Z80_FEATURES_H
+#define __SDC51_ASM_Z80_FEATURES_H   1
 
 #define _REENTRANT
 #define _CODE
 
+#define _SDCC_MANGLES_SUPPORT_FUNS     1
+#define _SDCC_Z80_STYLE_LIB_OPT                1
+
+/* The following are disabled to make the dhrystone test more authentic.
+ */
+#define _SDCC_PORT_PROVIDES_MEMCPY     0
+#define _SDCC_PORT_PROVIDES_STRCMP     0
+/* Register allocator is as good as hand coded asm.  Cool. */
+#define _SDCC_PORT_PROVIDES_STRCPY     0
+
+#define _SDCC_MALLOC_TYPE_MLH          1
+
 #endif