]> git.gag.com Git - fw/sdcc/commitdiff
Minor changes. Includes no$gmb sym name limit.
authormichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 12 Jul 2000 01:49:57 +0000 (01:49 +0000)
committermichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 12 Jul 2000 01:49:57 +0000 (01:49 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@293 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/tests/dhrystone/Makefile
support/tests/dhrystone/dhry.c

index d06024d3ace5e33028255041db38f4dccac9c262..bdb070da809fbc588cb7d4222851afb8b90f00d2 100644 (file)
@@ -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)
index 6cf80df36808ced4bd3453ad65050e50bd74bc80..859a88c770ad9ee216c0d083e461a9053999dd08 100644 (file)
     ...!uunet!pcrat!dry2       (results only)
 */
 
+#define NOENUM         1
+#define NOSTRUCTASSIGN 1
+#define REG
+
 #include "dhry.h"
 #include <string.h>
 /** 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);
 }