diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/monniaux/cycles.h | 2 | ||||
-rw-r--r-- | test/monniaux/rules.mk | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/test/monniaux/cycles.h b/test/monniaux/cycles.h index 8012a013..21541145 100644 --- a/test/monniaux/cycles.h +++ b/test/monniaux/cycles.h @@ -46,5 +46,5 @@ static inline cycle_t get_cycle(void) { return 0; } #ifdef MAX_MEASURES #define TIMEINIT(i) {_last_stop[i] = get_cycle();} #define TIMESTOP(i) {cycle_t cur = get_cycle(); _total_cycles[i] += cur - _last_stop[i]; _last_stop[i] = cur;} - #define TIMEPRINT(n) { for (int i = 0; i <= n; i++) printf("(%d) cycles: %" PRIu64 "\n", i, _total_cycles[i]); } + #define TIMEPRINT(n) { for (int i = 0; i <= n; i++) printf("%d cycles: %" PRIu64 "\n", i, _total_cycles[i]); } #endif diff --git a/test/monniaux/rules.mk b/test/monniaux/rules.mk index 4dfeac3b..9d05b4d6 100644 --- a/test/monniaux/rules.mk +++ b/test/monniaux/rules.mk @@ -12,6 +12,7 @@ CLOCK=../clock # Maximum amount of time measures (see cycles.h) MAX_MEASURES=10 +MEASURES?=time # Flags common to both compilers, then to gcc, then to ccomp ALL_CFLAGS+=-Wall -D__K1C_COS__ -DMAX_MEASURES=$(MAX_MEASURES) @@ -28,12 +29,12 @@ EXECUTE_CYCLES?=k1-cluster --syscall=libstd_scalls.so --cycle-based -- # You can define up to GCC4FLAGS and CCOMP4FLAGS GCC0FLAGS?= -GCC1FLAGS?=$(ALL_GCCFLAGS) -O1 +GCC1FLAGS?=$(ALL_GCCFLAGS) -O1 -g GCC2FLAGS?=$(ALL_GCCFLAGS) -O2 GCC3FLAGS?=$(ALL_GCCFLAGS) -O3 GCC4FLAGS?= CCOMP0FLAGS?= -CCOMP1FLAGS?=$(ALL_CCOMPFLAGS) -O1 +CCOMP1FLAGS?=$(ALL_CCOMPFLAGS) -O1 -g CCOMP2FLAGS?=$(ALL_CCOMPFLAGS) CCOMP3FLAGS?= CCOMP4FLAGS?= @@ -131,7 +132,7 @@ endif measures.csv: $(OUTFILES) @echo $(FIRSTLINE) > $@ - @for i in "$(MEASURES)"; do\ + @for i in $(MEASURES); do\ first=$$(grep "$$i cycles" $(firstword $(OUTFILES)));\ if test ! -z "$$first"; then\ if [ "$$i" != "time" ]; then\ |