cmd.exe
: https://github.com/cnlohr/mini-rv32ima/tree/7185ec78442060e032bb33a71e6fe2f4319409e8
set "MINI_RV32IMA_HASH=7185ec78442060e032bb33a71e6fe2f4319409e8"
cd /d "%USERPROFILE%\Documents"
if not exist my-mini-rv32ima ( mkdir my-mini-rv32ima )
cd my-mini-rv32ima
if not exist download ( mkdir download )
if not exist download\tcc-0.9.27-win64-bin.zip ( curl.exe --output-dir download -JOL http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27-win64-bin.zip && popd )
if not exist download\winapi-full-for-0.9.27.zip ( curl.exe --output-dir download -JOL http://download.savannah.gnu.org/releases/tinycc/winapi-full-for-0.9.27.zip )
if not exist download\mini-rv32ima-%MINI_RV32IMA_HASH%.zip ( curl.exe --output-dir download -JOL https://github.com/cnlohr/mini-rv32ima/archive/%MINI_RV32IMA_HASH%.zip )
tar.exe -xf download\tcc-0.9.27-win64-bin.zip
tar.exe -xf download\winapi-full-for-0.9.27.zip
tar.exe -xf download\mini-rv32ima-%MINI_RV32IMA_HASH%.zip
robocopy winapi-full-for-0.9.27 tcc *.* /S /E /MOVE
ren mini-rv32ima-%MINI_RV32IMA_HASH% mini-rv32ima
set "PATH=%PATH%;%USERPROFILE%\Documents\my-mini-rv32ima\tcc"
cd mini-rv32ima\windows
powershell -ExecutionPolicy Bypass -Command .\winrun.ps1
: buildroot login: root
: ~ # ./hello_linux
powershell -ExecutionPolicy Bypass -Command .\winrundoom.ps1
: buildroot login: root
: ~ # ./emdoom
Last active
January 28, 2024 08:57
-
-
Save t-mat/3588f973d1b8351896c07d10a33f576a to your computer and use it in GitHub Desktop.
[Windows]Download, build and run mini-rv32ima
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment