Make sure you have installed all of the following prerequisites on your machine:
flex>=2.6.4
bison>=3.3.2
cmake>=3.8
- a
C++17
compilergcc, g++, ...
# make sure to build in a seperate folder
mkdir build
cd build
cmake ..
make
This project uses Catch2.
The tests are available in the tests
folder.
After building the project, a unit_tests
executable will be created.
$ ./unit_tests
===============================================================================
All tests passed (18 assertions in 3 test cases)
Intel's x86-64 Architecture Simulation
Usage:
./app [OPTION...] filename
-f, --filename arg Input filename
-i, --interactive Enable interactive execution
-s, --speed arg Execution speed (instruction per minute) (default: 100)
-h, --help Print usage