TheThirdOne / rars

RARS -- RISC-V Assembler and Runtime Simulator
Other
1.14k stars 217 forks source link

Running machine code directly #94

Open ghost opened 3 years ago

ghost commented 3 years ago

Can I load and run RISCV instruction machine codes directly on RARS?

TheThirdOne commented 3 years ago

Currently it is not possible to load an ELF or any other type of binary file directly.

There is a start to the work on executing programs from ELF files in the elfloading branch. I don't remember how much work it needs before it would be ready to merge into master. I would expect that the changes will land in master some time in the next year, but I don't know when I will get to it.

Alternatively, with the "self modifying code" option it is possible to make a program that would load a binary file into memory.

ProxyPlayerHD commented 3 months ago

any updates on this? it's been 4 years and the ability to make use external tools like gcc without having to use objdump or similar would be nice.