X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Finclude%2Fasm%2Fgbz80%2Ffeatures.h;h=28866ec106a089d9ec4c815da1fd9a1f53a0b899;hb=44a3cdde790cdde99156133b12ea6263dbde536c;hp=8abaeb3fa84bbdbcb743cbe10e9c2edddc7d117f;hpb=b08365679f95e6cb1c7e8ef150ef304cc40cf305;p=fw%2Fsdcc diff --git a/device/include/asm/gbz80/features.h b/device/include/asm/gbz80/features.h index 8abaeb3f..28866ec1 100644 --- a/device/include/asm/gbz80/features.h +++ b/device/include/asm/gbz80/features.h @@ -1,9 +1,19 @@ -/** 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 1 +#define _SDCC_PORT_PROVIDES_STRCMP 1 +/* Register allocator is as good as hand coded asm. Cool. */ +#define _SDCC_PORT_PROVIDES_STRCPY 0 + #endif