From f8c7446e3ea964d0246de72419c2a38c7ab73c5e Mon Sep 17 00:00:00 2001 From: michaelh Date: Wed, 12 Jul 2000 01:49:57 +0000 Subject: [PATCH] Minor changes. Includes no$gmb sym name limit. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@293 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- support/tests/dhrystone/Makefile | 2 +- support/tests/dhrystone/dhry.c | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/support/tests/dhrystone/Makefile b/support/tests/dhrystone/Makefile index d06024d3..bdb070da 100644 --- a/support/tests/dhrystone/Makefile +++ b/support/tests/dhrystone/Makefile @@ -5,7 +5,7 @@ PORT = consolez80 CC = /home/michaelh/projects/gbdk-support/lcc/lcc # -DNOENUM is here to make the results more predictable -CFLAGS = -Wl-m -mz80/consolez80 -v --prefix=/home/michaelh/projects/gbdk-current/ +CFLAGS = -Wl-m -mz80/consolez80 -Wf--dumpall -v --prefix=/home/michaelh/projects/gbdk-current/ CFLAGS += -DREG= -DNOSTRUCTASSIGN -DNOENUM LIBDIR = /home/michaelh/projects/gbdk-lib/build/ LD = link-$(PROC) diff --git a/support/tests/dhrystone/dhry.c b/support/tests/dhrystone/dhry.c index 6cf80df3..859a88c7 100644 --- a/support/tests/dhrystone/dhry.c +++ b/support/tests/dhrystone/dhry.c @@ -39,6 +39,10 @@ ...!uunet!pcrat!dry2 (results only) */ +#define NOENUM 1 +#define NOSTRUCTASSIGN 1 +#define REG + #include "dhry.h" #include /** For printf */ @@ -112,7 +116,7 @@ int main(void) Ptr_Glob->variant.var_1.Enum_Comp = Ident_3; Ptr_Glob->variant.var_1.Int_Comp = 40; - strcpy (Ptr_Glob->variant.var_1.Str_Comp, + strcpy(Ptr_Glob->variant.var_1.Str_Comp, "DHRYSTONE PROGRAM, SOME STRING"); strcpy (Str_1_Loc, "DHRYSTONE PROGRAM, 1'ST STRING"); @@ -198,13 +202,13 @@ int main(void) DPRINTF(("Looping.\n")); } /* loop "for Run_Index" */ -#if 1 _printTStates(); printf("Run_Index = %d\n", Run_Index); runTime = clock() - runTime; +#if 1 printf ("Execution ends\n"); printf ("\n"); printf ("Final values of the variables used in the benchmark:\n"); @@ -219,7 +223,11 @@ int main(void) printf (" should be: %c\n", 'B'); printf ("Arr_1_Glob[8]: %d\n", Arr_1_Glob[8]); printf (" should be: %d\n", (int)7); +#if 0 printf ("Arr_2_Glob[8][7]: %d\n", Arr_2_Glob[8][7]); +#else + // printf ("Arr_2_Glob[8][7]: %d\n", Arr_2_Glob[8][7]); +#endif printf (" should be: Number_Of_Runs + 10\n"); printf ("Ptr_Glob->\n"); printf (" Ptr_Comp: %d\n", (int) Ptr_Glob->Ptr_Comp); @@ -257,10 +265,10 @@ int main(void) printf ("Str_2_Loc: %s\n", Str_2_Loc); printf (" should be: DHRYSTONE PROGRAM, 2'ND STRING\n"); printf ("\n"); +#endif printf("Dhrystones/s = %u\n", Number_Of_Runs / (runTime/CLOCKS_PER_SEC)); printf("MIPS = d/s/1757 = (sigh, need floats...)\n"); _printTStates(); -#endif printf("Time: %u ticks\n", runTime); } -- 2.47.2