first commit

This commit is contained in:
Yehowshua Immanuel 2025-02-12 23:54:15 -05:00
commit ef58d5b07e
34 changed files with 2210 additions and 0 deletions

View file

@ -0,0 +1,8 @@
# Assemble the code
riscv64-unknown-elf-as -march=rv64imac -mabi=lp64 -o hello.o hello.S
# Link with our linker script to create an ELF file
riscv64-unknown-elf-ld -T linker.ld -o hello.elf hello.o
# Convert ELF to a raw binary
riscv64-unknown-elf-objcopy -O binary hello.elf hello.bin