--- 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`