CLI reference
$ rvrun [-g PORT] [-L SYSROOT] [-0 ARGV0] <riscv64-linux-elf or #! script> [args...]The program may be a path or a name found on $PATH; everything after it
belongs to the guest. A script whose #! names a riscv64 interpreter is run by
starting that interpreter.
Options
Section titled “Options”-g PORT— wait for a GDB remote connection on127.0.0.1:PORTbefore running, with the guest stopped at its entry point, likeqemu-riscv64 -g. Port 0 selects a free port and prints it.-L SYSROOT— resolve the guest’s absolute paths (its dynamic loader, libraries,/etcfiles) under SYSROOT first, likeqemu-riscv64 -L; alsoRVRUN_SYSROOT.-0 ARGV0— pass ARGV0 as the guest’sargv[0]instead of the path, used when a guestexecvestarts a newrvrun.
Environment variables
Section titled “Environment variables”RVRUN_STRACE=1— trace every syscall to stderr.RVRUN_STATS=1— print instructions retired and execution speed on exit.RVRUN_JIT=0— run on the caching interpreter instead of the JIT.RVRUN_PROF=FILE— sample generated code and write a report of the hottest blocks to FILE; render it withtools/jitprof.py FILE.RVRUN_CACHE=0— disable the persistent code cache. Translations are otherwise saved per executable in~/Library/Caches/champollion(on Linux$XDG_CACHE_HOME/champollionor~/.cache/champollion), or where$RVRUN_CACHE_DIRpoints.
