diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-11-17 15:24:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-17 15:24:37 -0800 |
commit | 57fc40090f357b799d42552c4f77ce654a232471 (patch) | |
tree | 5d4d4851f1a9ff03864ab87de11bacc05804ddbd /software/dhrystone | |
parent | b53187a0434fe5e8dce288f55cfca36b292552e4 (diff) | |
parent | 401b704e73599a36bfdc8c778dab85f94d74ed1d (diff) |
Merge pull request #78 from sifive/dhrystone
Speed up Dhrystone on the HiFive1
Diffstat (limited to 'software/dhrystone')
-rw-r--r-- | software/dhrystone/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/software/dhrystone/Makefile b/software/dhrystone/Makefile index d401720..4602653 100644 --- a/software/dhrystone/Makefile +++ b/software/dhrystone/Makefile @@ -5,10 +5,10 @@ C_SRCS := dhry_stubs.c dhry_printf.c HEADERS := dhry.h DHRY_SRCS := dhry_1.c dhry_2.c -DHRY_CFLAGS := -O2 -DTIME -fno-inline -fno-builtin-printf -Wno-implicit -mcmodel=medany -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) +DHRY_CFLAGS := -O3 -DTIME -fno-inline -fno-builtin-printf -Wno-implicit -mcmodel=medany -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) XLEN ?= 32 -CFLAGS := -Os -fno-common -mcmodel=medany -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) +CFLAGS := -O3 -fno-common -mcmodel=medany -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -mexplicit-relocs -DNOENUM -falign-functions=4 LDFLAGS := -Wl,--wrap=scanf -Wl,--wrap=printf -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -mcmodel=medany DHRY_OBJS := $(patsubst %.c,%.o,$(DHRY_SRCS)) |