markpudd / criscv

RISC-V RV32I C Emulator
Apache License 2.0
0 stars 0 forks source link

Handling compiled binaries #1

Open yuppox opened 4 years ago

yuppox commented 4 years ago

Hi. Do you have a method to handle compiled elf binaries? Or is the another way you use to compile C/C++ code?

Without system calls, I take it that I/O functions won't work but it would still be interesting to get some code running.

Thanks!

markpudd commented 4 years ago

I have managed to run some simple binaries by building some code using the RISC-V tool chain and extracting the binary code from elf binary, I'll try and add some details to the docs on how to do this.
I've also been looking at ways to pass through syscall's to the underlying OS but this is a bigger piece of work so I'm not sure when I will get to this.

markpudd commented 4 years ago

I've added an update to the read me on how to build and run some simple code with the gcc tool chain.