RISC-V Assembler and Runtime Simulator (RARS) is an IDE with a debugger, like the MARS MIPS simulator with similar toy system calls.
RARS is inspired by and named after the MIPS simulator, MARS. (mars-simulator)
RARS is a simulator for RISC-V, simulating a simple environment for programs to run in, with a simple set of ecall
system calls that do things which are handled by libraries in a system like GNU/Linux. e.g. printInt
is call number 4, just like MARS.
Like MARS, these toy system calls don't return a length for readString, although there is a full Unix-like Read
system call (a7=63) which takes a file descriptor and returns a length or -1
, instead of just leaving a 0-terminated string in the supplied buffer for readString
(a7=8).