Files
Toooba/Tests/isa/Cprograms/benchmark/glibc/build.sh
2026-04-09 17:03:39 +01:00

45 lines
1.8 KiB
Bash

scp ../../encoding.h home-1:/home/akilan/
scp ../../entry.S home-1:/home/akilan/
scp ../../link.ld home-1:/home/akilan/
scp ../../riscv_test_p.h home-1:/home/akilan/
scp ../../riscv_test.h home-1:/home/akilan/
scp ../../string.c home-1:/home/akilan/
scp ../../vm.c home-1:/home/akilan/
scp ../../test.S home-1:/home/akilan/
scp ../../test_macros.h home-1:/home/akilan/
scp ../../malloc.c home-1:/home/akilan/
# scp ../../test.c home-1:/home/akilan/
scp glibc.c home-1:/home/akilan/
# GCC compile
# ssh home-1 'cd /home/akilan/ && export PATH=/opt/riscv/bin:$PATH && riscv64-unknown-elf-gcc -DENTROPY=0xf21e02b -mcmodel=medany -nostdlib -nostartfiles -ffreestanding -fno-builtin -mabi=lp64 -T link.ld vm.c string.c entry.S test.S -o testC'
# Clang compile (architecture Regular RISCV)
ssh home-1 'clang --target=riscv64-unknown-elf -DENTROPY=0xf21e02b -DDEFINE_MALLOC -DDEFINE_FREE --gcc-toolchain=/opt/riscv -mcmodel=medany -nostdlib -nostartfiles -ffreestanding -fno-builtin -fno-builtin-malloc -mabi=lp64 -T link.ld vm.c string.c malloc.c entry.S test.S glibc.c -o testC'
# Clang using the cheri clang compiler
# ssh home-1 'cd cheri/output/sdk/bin/ && ./clang --target=riscv64-unknown-freebsd -DENTROPY=0xf21e02b --sysroot=cheribsd-riscv64-for-purecap-rootfs.cfg -mcmodel=medany -nostdlib -nostartfiles -ffreestanding -fno-builtin -march=rv64imafdcxcheri -mabi=lp64d -T link.ld vm.c string.c entry.S test.S -o testC'
scp home-1:/home/akilan/testC ../../../
# scp home-1:/home/akilan/cheri/output/sdk/bin/testC .
# riscv64-unknown-elf-gcc \
# -march=rv64imac \
# -mabi=lp64 \
# -nostartfiles \
# -fno-builtin \
# -T link.ld \
# entry.S vm.c string.c \
# clang \
# --target=riscv64-unknown-elf \
# -march=rv64imac \
# -mabi=lp64 \
# -nostdlib \
# -nostartfiles \
# -fuse-ld=lld \
# -T link.ld \
# entry.S vm.c string.c \
# -I. \
# -o output.elf%