2023-08-20 15:00:51 +02:00
|
|
|
TARGET := dhrystone
|
|
|
|
ISA?=imc
|
2024-03-25 10:56:34 +01:00
|
|
|
ITERATIONS?=50000 # 20000 for TGC
|
2023-08-20 15:00:51 +02:00
|
|
|
|
|
|
|
ASM_SRCS :=
|
2024-03-20 07:38:40 +01:00
|
|
|
C_SRCS := dhry_stubs.c dhry_1.c dhry_2.c
|
2023-08-20 15:00:51 +02:00
|
|
|
HEADERS := dhry.h
|
|
|
|
|
2024-03-21 07:32:20 +01:00
|
|
|
BOARD?=iss
|
2023-08-20 15:00:51 +02:00
|
|
|
LINK_TARGET=link
|
|
|
|
RISCV_ARCH:=rv32$(ISA)
|
2023-12-06 10:00:33 +01:00
|
|
|
ifneq (,$(findstring e,$(ISA)))
|
2023-08-20 15:00:51 +02:00
|
|
|
RISCV_ABI:=ilp32e
|
|
|
|
else
|
|
|
|
RISCV_ABI:=ilp32
|
|
|
|
endif
|
|
|
|
# '-lgcc -lm' are needed to add softfloat routines
|
2024-06-14 14:05:55 +02:00
|
|
|
CFLAGS := -g -O3 -DITERATIONS=$(ITERATIONS) -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
|
|
|
|
|
|
|
|
TOOL_DIR=$(dir $(compiler))
|
|
|
|
|
|
|
|
BSP_BASE = ../../bare-metal-bsp
|
|
|
|
include $(BSP_BASE)/env/common-gcc.mk
|