forked from eembc/coremark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vexriscv.sh
executable file
·59 lines (39 loc) · 1.77 KB
/
vexriscv.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
rm -rf build
mkdir build
rm -rf *.o
rm -rf *.bin
rm -rf *.asm
rm -rf *.elf
make PORT_DIR=vexriscv_sim XCFLAGS="-DCLOCKS_PER_SEC=100000 -DCORE_DEBUG=0" ITERATIONS=10 REBUILD=1 clean compile link
mv coremark.bin coremark.elf
riscv64-unknown-elf-objcopy -O binary coremark.elf build/coremark_rv32i.bin
riscv64-unknown-elf-objcopy -O ihex coremark.elf build/coremark_rv32i.hex
riscv64-unknown-elf-objdump -S -d coremark.elf > build/coremark_rv32i.asm
rm -rf *.o
rm -rf *.bin
rm -rf *.asm
rm -rf *.elf
make PORT_DIR=vexriscv_sim XCFLAGS="-DCLOCKS_PER_SEC=100000 -DCORE_DEBUG=0" ITERATIONS=10 REBUILD=1 MULDIV=yes clean compile link
mv coremark.bin coremark.elf
riscv64-unknown-elf-objcopy -O binary coremark.elf build/coremark_rv32im.bin
riscv64-unknown-elf-objcopy -O ihex coremark.elf build/coremark_rv32im.hex
riscv64-unknown-elf-objdump -S -d coremark.elf > build/coremark_rv32im.asm
rm -rf *.o
rm -rf *.bin
rm -rf *.asm
rm -rf *.elf
make PORT_DIR=vexriscv_sim XCFLAGS="-DCLOCKS_PER_SEC=100000 -DCORE_DEBUG=0" ITERATIONS=10 REBUILD=1 COMPRESSED=yes clean compile link
mv coremark.bin coremark.elf
riscv64-unknown-elf-objcopy -O binary coremark.elf build/coremark_rv32ic.bin
riscv64-unknown-elf-objcopy -O ihex coremark.elf build/coremark_rv32ic.hex
riscv64-unknown-elf-objdump -S -d coremark.elf > build/coremark_rv32ic.asm
rm -rf *.o
rm -rf *.bin
rm -rf *.asm
rm -rf *.elf
make PORT_DIR=vexriscv_sim XCFLAGS="-DCLOCKS_PER_SEC=100000 -DCORE_DEBUG=0" ITERATIONS=10 REBUILD=1 MULDIV=yes COMPRESSED=yes clean compile link
mv coremark.bin coremark.elf
riscv64-unknown-elf-objcopy -O binary coremark.elf build/coremark_rv32imc.bin
riscv64-unknown-elf-objcopy -O ihex coremark.elf build/coremark_rv32imc.hex
riscv64-unknown-elf-objdump -S -d coremark.elf > build/coremark_rv32imc.asm