1
Fork 0
mirror of https://github.com/Steffo99/appunti-magistrali.git synced 2024-11-24 19:24:19 +00:00
appunti-steffo/2 - Architettura dei calcolatori/0 - Script forniti/assemble.sh

8 lines
180 B
Bash
Raw Permalink Normal View History

#!/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 $?