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

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 $?