risc-v asm thingy
This commit is contained in:
parent
2fc057b6e8
commit
b568eca60d
6 changed files with 46 additions and 1 deletions
17
experiments/riscv-asm/build.sh
Normal file
17
experiments/riscv-asm/build.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "Building for RISC-V 64..."
|
||||
|
||||
[ -d "build" ] || mkdir build
|
||||
rm -rf build/*
|
||||
|
||||
riscv64-linux-gnu-as main.s -o build/main.o
|
||||
riscv64-linux-gnu-gcc \
|
||||
build/main.o \
|
||||
-o build/main \
|
||||
-nostdlib \
|
||||
-static
|
||||
|
||||
echo "OK"
|
Loading…
Add table
Add a link
Reference in a new issue