Skip to content

Commit

Permalink
application: add benchmark toolchain makefiles for hightec
Browse files Browse the repository at this point in the history
Test it like this

hightec toolchain current 0.3.0 version code size still can be
improved

$ cat application/baremetal/benchmark/quick_bench.sh

for case in coremark dhrystone whetstone; do
    pushd $case
    export SIMULATION=1
    //export GDBREMOTE="whss6:23000"
    echo "Build $case for TOOLCHAIN=hightec"
    make TOOLCHAIN=hightec CORE=n300f DOWNLOAD=sram SILENT=1 clean all
    make TOOLCHAIN=hightec CORE=n300f DOWNLOAD=sram SILENT=1 upload
    sleep 10
    echo "Build $case for TOOLCHAIN=nuclei_gnu"
    make TOOLCHAIN=nuclei_gnu CORE=n300f DOWNLOAD=sram SILENT=1 clean all
    make TOOLCHAIN=nuclei_gnu CORE=n300f DOWNLOAD=sram SILENT=1 upload
    sleep 10
    popd
done

Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Jul 25, 2024
1 parent f4c6216 commit fa287f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/baremetal/benchmark/coremark/toolchain_hightec.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BENCH_FLAGS ?= -O3 -flto -falign-functions=4 -falign-loops=4
LDFLAGS += -Wl,-mllvm,--align-all-nofallthru-blocks=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ifeq ($(DHRY_MODE),ground)
BENCH_FLAGS ?= -Ofast -flto -fno-inline -fno-builtin-printf -funroll-loops -falign-functions=4 -falign-loops=4
else ifeq ($(DHRY_MODE),best)
BENCH_FLAGS ?= -Ofast -flto -finline -fno-builtin-printf -funroll-loops -falign-functions=4 -falign-loops=4 -finline-functions
else ifeq ($(DHRY_MODE),inline)
BENCH_FLAGS ?= -O3 -flto -finline -fno-builtin-printf -funroll-loops -falign-functions=4 -falign-loops=4 -finline-functions
endif
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BENCH_FLAGS ?= -Ofast -funroll-loops

0 comments on commit fa287f8

Please sign in to comment.