4 #include "StgRegAddrs.h"
6 #define CHECKPOINT 1000000 /* reporting frequency */
7 static int countdown = CHECKPOINT;
40 if ((output = fopen("REGSTATS", "w")) == 0)
41 syserr("cannot open statistics file REGSTATS\n");
43 fprintf(output, "%s\n", msg);
44 for (i = 0; info[i].str; i++) {
45 fprintf(output, "%-16.16s %8d %8d\n",
46 info[i].str, info[i].load, info[i].store);
52 if ( (OP3(t->iw)&014) == 004) { \
57 /* fprintf(stderr, "%s\n", info[i].str); */ \
66 for (; t < tend; t++) {
67 if (OP(t->iw) == 3 && /* Load/store; (OP3(t->iw)&014)==004) => store */
68 !(t->flags & ANNULLED)) {
69 unsigned a = (unsigned)t->ea;
111 if (countdown <= 0) {
112 printregs("Intermediate:");
113 countdown = CHECKPOINT;