...!uunet!pcrat!dry2 (results only)
*/
+#define NOENUM 1
+#define NOSTRUCTASSIGN 1
+#define REG
+
#include "dhry.h"
#include <string.h>
/** For printf */
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");
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");
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);
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);
}