Skip to content

Commit 84287fd

Browse files
committed
Import Dhrystone for benchmarking
1 parent 3ae7971 commit 84287fd

File tree

5 files changed

+999
-1
lines changed

5 files changed

+999
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ SRC += ./user/debug-link/debug_link.c
126126
-include ./user/shell/shell.mk
127127
-include ./user/tasks/tasks.mk
128128
-include ./user/mavlink/mavlink.mk
129+
-include ./user/benchmarks/benchmarks.mk
129130

130131
OBJS := $(SRC:.c=.o)
131132
OBJS += ./tools/mkromfs/romfs.o

user/benchmarks/benchmarks.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
PROJ_ROOT := $(dir $(lastword $(MAKEFILE_LIST)))/../..
2+
3+
CFLAGS += -DTIME
4+
CFLAGS += -I $(PROJ_ROOT)/benchmarks/dhrystone
5+
6+
# Enable the feature by uncommenting the line
7+
8+
# To execute the Dhrystone benchmarking program, type `dhrystone'
9+
# command to the shell
10+
# SRC += $(PROJ_ROOT)/user/benchmarks/dhrystone/dhrystone.c

0 commit comments

Comments
 (0)