mirror of
https://github.com/Steffo99/appunti-magistrali.git
synced 2024-11-21 18:34:18 +00:00
7 lines
180 B
Bash
7 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 $?
|