Skip to content
forked from chximn/CPU

Intel's x86-64 Architecture Simulation in C++

Notifications You must be signed in to change notification settings

ArthurSonzogni/CPU

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x86-64 CPU Architecture Simulation

Example

Getting Started

Prerequisites

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 compiler gcc, g++, ...

Build

# make sure to build in a seperate folder
mkdir build
cd build
cmake ..
make

Unit Tests

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)

Usage

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

About

Intel's x86-64 Architecture Simulation in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 92.7%
  • Yacc 3.5%
  • CMake 2.6%
  • LLVM 1.2%