Elemeants / Lc3-VirtualMachine

Educational project and I choose the LC-3 CPU to make a virtual machine code that executes obj files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LC-3 (Little Computer 3) Virtual Machine

The Lc3 is an educational CPU, that is not physically implemented, so as a personal educational project I made a virtual machine that can execute code targeted to the Lc3.

Prerequisites

There are no many prerequisites, only need a C compiler, CMake, and maybe make or visual studio, i test it with make.

  • GCC (Tested in gcc-4.6.3)
  • Make (Tested in GNU Make 4.2.1)
  • CMake >= 3.1.0

Building project

Fist need to create a folder to save generated build files.

mkdir build && cd build

Inside the build folder call cmake to the project.

cmake ../

Now you can build the project using cmake or any you want.

cmake --build .

Usage

Call the executable and as argument the path to the object file of your code.

lc3vm [obj-file]

A simulation log file will generate called "lc3vm.log", used to debug the application.

Based on

I use the information provided in the next repository: LC3-VM

About

Educational project and I choose the LC-3 CPU to make a virtual machine code that executes obj files.


Languages

Language:C 90.8%Language:C++ 6.9%Language:CMake 2.3%