projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor changes. Includes no$gmb sym name limit.
[fw/sdcc]
/
support
/
tests
/
dhrystone
/
dhry.c
diff --git
a/support/tests/dhrystone/dhry.c
b/support/tests/dhrystone/dhry.c
index 6cf80df36808ced4bd3453ad65050e50bd74bc80..859a88c770ad9ee216c0d083e461a9053999dd08 100644
(file)
--- a/
support/tests/dhrystone/dhry.c
+++ b/
support/tests/dhrystone/dhry.c
@@
-39,6
+39,10
@@
...!uunet!pcrat!dry2 (results only)
*/
...!uunet!pcrat!dry2 (results only)
*/
+#define NOENUM 1
+#define NOSTRUCTASSIGN 1
+#define REG
+
#include "dhry.h"
#include <string.h>
/** For printf */
#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;
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");
"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" */
DPRINTF(("Looping.\n"));
} /* loop "for Run_Index" */
-#if 1
_printTStates();
printf("Run_Index = %d\n", Run_Index);
runTime = clock() - runTime;
_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 ("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);
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]);
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 (" 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");
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();
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);
}
printf("Time: %u ticks\n", runTime);
}