mirror of
https://github.com/Steffo99/appunti-magistrali.git
synced 2024-11-22 02:44:17 +00:00
8 lines
180 B
Bash
8 lines
180 B
Bash
|
#!/bin/bash
|
||
|
# Assemble RISV-V assembly (.s) files
|
||
|
riscv64-unknown-elf-as -g -o "$1.o" "$1.riscv"
|
||
|
# Link RISC-V object (.o) files
|
||
|
riscv64-unknown-elf-ld -o "$1.elf" "$1.o"
|
||
|
|
||
|
exit $?
|