View on GitHub

Computer Architecture and Operating Systems

Course taught at Faculty of Computer Science of Higher School of Economics

RARS

RARS in a RISC-V assembler and runtime simulator. It is used in this course to create, assemble and simulate assembly programs for RISC-V microprocessors.

The home page of the RARS project is here. In case the project becomes unavailable, here is a fork.

Downloading and Installing

Java

RARS is a Java application that works under any desktop operating system (Windows, MacOS, Linux). It requires Java 8 or higher to be installed. The most recent Java version can be downloaded from here. Older versions of Java can be found here. To install, run the downloaded installation package (.exe, .prm, .dmg).

RARS

RARS can be downloaded from its home page. Follow the Releases link at the right. This is JAR-file that has a name like rars1_5.jar. Download it to the folder where you store course-related files.

Linux and MacOS

In Linux and MacOS, RARS can be run with the following command:

(base) Andreis-MacBook-Pro:Downloads andrew$ java -jar rars1_5.jar 

For convenience, you can create the following Bash script and use it to run RARS.

rars.sh:

#!/bin/bash
java -jar rars1_5.jar 

Running a Bash script:

(base) Andreis-MacBook-Pro:Downloads andrew$ sh rars.sh 

Also, rars.sh can be made an executable file:

(base) Andreis-MacBook-Pro:Downloads andrew$ chmod +x rars.sh

Then you can run it with this command:

(base) Andreis-MacBook-Pro:Downloads andrew$ ./rars.sh

Windows