--- tags: computer-arch --- # Lab0: Web-based RISC-V Emulators ## JSLinux ![](https://hackmd.io/_uploads/rJprwZYNF.png) * [jslinux](https://bellard.org/jslinux/) * select riscv64, Linux 4.15.0 (Buildroot), Console Commands: * `cat readme.txt` > Follow its instructions Commands: * `uname -a` > Linux riscv 4.15.0, risc64 * `cat /proc/cpuinfo` > isa: rv64acdfimsu * `cat /proc/meminfo` > MemTotal: 251980 kB * `nano hello.c` > ```cpp > #include <stdio.h> > int main() { puts("hello"); } > ``` > Ctrl-X: Exit * `gcc -o hello hello.c` * `./hello` ## [emulsiV](https://eseo-tech.github.io/emulsiV/) [emulsiV](https://eseo-tech.github.io/emulsiV/) is a visual simulator for a simple RISC processor called Virgule. Virgule is a 32-bit RISC processor core that implements a minimal subset of the RISC-V instruction set. Here, "minimal" means that Virgule accepts only the instructions that a C compiler would generate from a pure stand-alone C program.