|
Last change
on this file since 753 was
753,
checked in by cfuguet, 10 years ago
|
|
Introducing the coremark benchmark
|
|
File size:
988 bytes
|
| Line | |
|---|
| 1 | |
|---|
| 2 | APP_NAME = coremark |
|---|
| 3 | |
|---|
| 4 | OBJS= core_main.o \ |
|---|
| 5 | core_list_join.o \ |
|---|
| 6 | core_matrix.o \ |
|---|
| 7 | core_state.o \ |
|---|
| 8 | core_util.o \ |
|---|
| 9 | mach/core_portme.o |
|---|
| 10 | |
|---|
| 11 | LIBS= -L../../build/libs -luser |
|---|
| 12 | |
|---|
| 13 | INCLUDES = -I. -I./mach -I../.. -I../../giet_libs -I../../giet_xml |
|---|
| 14 | |
|---|
| 15 | DEFS := -DFLAGS_STR="\"${CFLAGS}\"" -DTOTAL_DATA_SIZE=2000 |
|---|
| 16 | |
|---|
| 17 | COREMARK ?= RUN1 |
|---|
| 18 | ifeq (${COREMARK},RUN1) |
|---|
| 19 | $(info Coremark Performance Run) |
|---|
| 20 | DEFS := ${DEFS} -DPERFORMANCE_RUN=1 |
|---|
| 21 | endif |
|---|
| 22 | ifeq (${COREMARK},RUN2) |
|---|
| 23 | $(info Coremark Validation Run) |
|---|
| 24 | DEFS := ${DEFS} -DVALIDATION_RUN=1 |
|---|
| 25 | endif |
|---|
| 26 | ifeq (${COREMARK},RUN3) |
|---|
| 27 | $(info Coremark Profile Run) |
|---|
| 28 | DEFS := ${DEFS} -DPROFILE_RUN=1 |
|---|
| 29 | endif |
|---|
| 30 | |
|---|
| 31 | #DEFS := ${DEFS} -DCORE_DEBUG=1 |
|---|
| 32 | |
|---|
| 33 | LIB_DEPS = ../../build/libs/libuser.a |
|---|
| 34 | |
|---|
| 35 | appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) |
|---|
| 36 | $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS) |
|---|
| 37 | $(DU) -D $@ > $@.txt |
|---|
| 38 | |
|---|
| 39 | check_coremark: coremark.md5 |
|---|
| 40 | md5sum -c $< |
|---|
| 41 | |
|---|
| 42 | %.o: %.c |
|---|
| 43 | $(CC) $(INCLUDES) $(CFLAGS) ${DEFS} -c -o $@ $< |
|---|
| 44 | |
|---|
| 45 | clean: |
|---|
| 46 | rm -f *.o *.elf appli.elf.txt *.pyc core *~ |
|---|
Note: See
TracBrowser
for help on using the repository browser.