A simulation of a Superscalar Processor
This project is written in Java and built using Apache Ant.
- Check Apache Ant is installed:
If not, follow these instructions, or install with your package manager.
$ ant -version Apache Ant(TM) version 1.10.6 compiled on May 2 2019
- The
$ ant all
command (or simply$ ant
) will build and run the project. For fine-grained interaction,$ ant clean
cleans the build directory,$ ant build
compiles the source tree files,$ ant build-jar
compiles a JAR from built class files,$ ant run
runs the project JAR:- Specify a custom program file:
$ ant run -Dpf=programs/some-program.asm
. - Run in interactive mode:
$ ant run -Dpf=programs/some-program.asm -Di=true
. - Omission of the
run
parameter will trigger a build before execution.
- Specify a custom program file:
- Alternatively, once built, you can interact with the JAR directly:
$ java -jar superscalar-processor.jar
to run the default program, or$ java -jar superscalar-processor.jar programs/some-program.asm
to specify a custom program file, or$ java -jar superscalar-processor.jar programs/some-program.asm true
run in interactive mode.
- Java - Project language
- Apache Ant - Automates the project build process