Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fox-archives/dockerized-mars

Configuration for spinning up MIPS Assembly and Runtime Simulator (MARS) in a Docker container
https://github.com/fox-archives/dockerized-mars

docker mips mips-assembly mips-simulator

Last synced: 3 months ago
JSON representation

Configuration for spinning up MIPS Assembly and Runtime Simulator (MARS) in a Docker container

Awesome Lists containing this project

README

        

# Dockerized MARS

## Introduction

The MIPS Assembler and Runtime Simulator (MARS) is a good program for running (simulated) MIPS assemby code. If you want to get it up and running quickly (without installing Java on your host system), this is the tool for you. It contains configuration used to spin up MARS in a Docker container, whether you are running on GNU/Linux, macOS, or Windows.

## Notes

If you are on GNU/Linux, this will only work if you are running an Xorg display server on your host machine. (Wayland and Mir are not directly supported).

**Important**, the MARS program will only be able to see assembly programs that are contained in the `./dockerized-mars` directory. You will *not* be able to browse for files that are just anywhere on your computer. This is because we are [bind mounting](https://docs.docker.com/storage/bind-mounts) the [`./dockerized-mars` directory](https://github.com/eankeen/dockerized-mars/blob/8c19a71b7317b2c915d27be84f22470d2acfbff9/start.sh#L15) into the Docker container.

## Setup

Docker [must be installed](https://docs.docker.com/install).

```sh
git clone https://github.com/eankeen/dockerized-mars
cd dockerized-mars
chmod +x ./start.sh
sudo ./start.sh
```

Running `start.sh` as sudo is required because connecting to the Docker daemon socket requires superuser privileges.