Load ELF into emulator

This commit is contained in:
2024-05-12 00:33:10 +02:00
parent 1f48837af8
commit 7642349be9
4 changed files with 172 additions and 1 deletions

View File

@ -1,2 +1,6 @@
clang main.c -o riscv.exe -std=c11
clang emulator/main.c -o emulator.exe -std=c11 -D_CRT_SECURE_NO_WARNINGS
REM clang linker/main.c -o linker.exe -std=c11 -D_CRT_SECURE_NO_WARNINGS
clang --target=riscv32 -march=rv32i -e _main -nostdlib main.asm -o main.bin