2023-08-20 15:00:51 +02:00
|
|
|
TARGET := dhrystone
|
|
|
|
ISA?=imc
|
|
|
|
|
|
|
|
ASM_SRCS :=
|
|
|
|
C_SRCS := dhry_stubs.c dhry_printf.c dhry_1.c dhry_2.c
|
|
|
|
HEADERS := dhry.h
|
|
|
|
|
|
|
|
BOARD=iss
|
|
|
|
LINK_TARGET=link
|
|
|
|
RISCV_ARCH:=rv32$(ISA)
|
|
|
|
ifeq ($(ISA),e)
|
|
|
|
RISCV_ABI:=ilp32e
|
|
|
|
else
|
|
|
|
RISCV_ABI:=ilp32
|
|
|
|
endif
|
|
|
|
# '-lgcc -lm' are needed to add softfloat routines
|
2023-12-09 16:38:45 +01:00
|
|
|
CFLAGS := -g -march=$(RISCV_ARCH)_zicsr_zifencei -mabi=$(RISCV_ABI) -mcmodel=medlow -O3 -DHZ=32768 -DTIME -DNO_INIT -fno-inline -fno-builtin-printf -fno-common -Wno-implicit \
|
2023-08-20 15:00:51 +02:00
|
|
|
-funroll-loops -fpeel-loops -fgcse-sm -fgcse-las
|
2023-12-09 16:38:45 +01:00
|
|
|
LDFLAGS := -g -march=$(RISCV_ARCH)_zicsr_zifencei -mabi=$(RISCV_ABI) -mcmodel=medlow -Wl,--wrap=scanf -Wl,--wrap=printf -Wl,--wrap=exit -lgcc -lm
|
2023-08-20 15:00:51 +02:00
|
|
|
|
|
|
|
TOOL_DIR=$(dir $(compiler))
|
|
|
|
|
|
|
|
BSP_BASE = ../../bare-metal-bsp
|
|
|
|
include $(BSP_BASE)/env/common-gcc.mk
|