diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-05-12 00:33:10 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-05-12 00:33:10 +0200 |
commit | 7642349be93be4a1acf62e9c5ca831f918ba1c3c (patch) | |
tree | 71a97352d57e4ac11db1505292caf0ac3427c005 /build.bat | |
parent | 1f48837af82e5bc226b62b509d61986c2b82f11b (diff) |
Load ELF into emulator
Diffstat (limited to 'build.bat')
-rw-r--r-- | build.bat | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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
+
|