JsSpim

JsSpim (link: https://shawnzhong.github.io/JsSpim/) is an online MIPS32 simulator based on Prof. James Larus's Spim.
Spim is a self-contained simulator that runs MIPS32 programs. It reads and executes assembly language programs written for this processor. Spim also provides a simple debugger and minimal set of operating system services. Spim does not execute binary (compiled) programs. Spim implements almost the entire MIPS32 assembler-extended instruction set. (It omits most floating point comparisons and rounding modes and the memory system page tables.) The MIPS architecture has several variants that differ in various ways (e.g., the MIPS64 architecture supports 64-bit integers and addresses), which means that Spim will not run programs for all MIPS processors.
The source code is published at GitHub

Screenshot

image-20190530030929768

Screen Record

Features

  • Click on an instruction to toggle breakpoint
  • Use the range slider to control the execution speed
  • Highlight on changed registers, data segment, and stack
  • Radix support for all values

Built With

  • Spim - The original simulator written in C++
  • Emscripten - Toolchain to compile C++ source code to WebAssembly using the LLVM IR.
  • Bootstrap - Using the CSS library to build the UI
  • highlight.js - For highlighting the source code

xv6 File System Visualizer

This is an online visualizer for xv6 file system image. The source code is published at GitHub

Screenshot

screenshot

Screen Record

Features

  • See the overall layout of an xv6 filesystem image
  • View the metadata storoed in inodes
  • Trace the relationship between files/directories, inodes, and blocks
  • Check the file/directory path for inodes
  • Basic inconsistency checking:
    • Invalid inode type.
    • Inode marked use but not found in a directory.
    • Inode referred to in directory but marked free.
    • Block used by inode but marked free in bitmap.
    • Bitmap marks block in use but it is not in use.