40 lines
1.3 KiB
Bash
40 lines
1.3 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/
|
|
|
|
# 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 --gcc-toolchain=/opt/riscv -mcmodel=medany -nostdlib -nostartfiles -ffreestanding -fno-builtin -mabi=lp64 -T link.ld vm.c string.c entry.S test.S -o testC'
|
|
|
|
# Clang using the cheri clang compiler
|
|
scp home-1:/home/akilan/testC .
|
|
|
|
export PATH=/home/akilan/cheri/output/sdk/bin/clang:$PATH
|
|
|
|
# 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 |