Skip to content

Commit

Permalink
Merge branch 'master' into vectorOoO
Browse files Browse the repository at this point in the history
  • Loading branch information
HidetaroTanaka committed Nov 16, 2023
2 parents 90ba572 + ca9cb02 commit 643f556
Show file tree
Hide file tree
Showing 7 changed files with 2,888 additions and 6 deletions.
18 changes: 18 additions & 0 deletions src/main/resources/applications_vector/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -518,4 +518,22 @@ hexdump -v -e '1/4 "%08x" "\n"' vredsum_text_startup.bin > vredsum_text_startup.
cat vredsum_rodata.temp vredsum_rodata_str1_8.temp vredsum_sdata.temp > vredsum_data.hex
cat vredsum_text_init.temp vredsum_text.temp vredsum_text_startup.temp > vredsum_inst.hex

riscv64-unknown-elf-gcc -I ../application_headers -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns -march=rv64im_zicsr_zve64x -mabi=lp64 -o vector_matmul.riscv ./vector_matmul/vector_matmul.c ../application_headers/syscalls.c ../application_headers/crt.S -static -nostdlib -nostartfiles -T ../application_headers/test.ld
riscv64-unknown-elf-objdump --disassemble-all vector_matmul.riscv > vector_matmul.dump
riscv64-unknown-elf-objcopy --dump-section .rodata=vector_matmul_rodata.bin vector_matmul.riscv
riscv64-unknown-elf-objcopy --dump-section .rodata.str1.8=vector_matmul_rodata_str1_8.bin vector_matmul.riscv
riscv64-unknown-elf-objcopy --dump-section .sdata=vector_matmul_sdata.bin vector_matmul.riscv
riscv64-unknown-elf-objcopy --dump-section .text.init=vector_matmul_text_init.bin vector_matmul.riscv
riscv64-unknown-elf-objcopy --dump-section .text=vector_matmul_text.bin vector_matmul.riscv
riscv64-unknown-elf-objcopy --dump-section .text.startup=vector_matmul_text_startup.bin vector_matmul.riscv
hexdump -v -e '1/4 "%08x" "\n"' vector_matmul_rodata.bin > vector_matmul_rodata.temp
hexdump -v -e '1/4 "%08x" "\n"' vector_matmul_rodata_str1_8.bin > vector_matmul_rodata_str1_8.temp
hexdump -v -e '1/4 "%08x" "\n"' vector_matmul_sdata.bin > vector_matmul_sdata.temp
hexdump -v -e '1/4 "%08x" "\n"' vector_matmul_text_init.bin > vector_matmul_text_init.temp
hexdump -v -e '1/4 "%08x" "\n"' vector_matmul_text.bin > vector_matmul_text.temp
hexdump -v -e '1/4 "%08x" "\n"' vector_matmul_text_startup.bin > vector_matmul_text_startup.temp
cat vector_matmul_rodata.temp vector_matmul_rodata_str1_8.temp vector_matmul_sdata.temp > vector_matmul_data.hex
cat vector_matmul_text_init.temp vector_matmul_text.temp vector_matmul_text_startup.temp > vector_matmul_inst.hex


rm *.riscv *.bin *.temp
Loading

0 comments on commit 643f556

Please sign in to comment.