RussellHaley / mircVM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mircVM

The Mercy VM is a prototype "C Virtual Machine" based on the MIR VM and the C To MIR compiler, both of which are created by Vladimir Makarov. The purpose of this project it to gain experience working with MIR and deduce how difficult it would be to maintain a 32 bit variant, especially one capable of running on an arm-none-eabi (bare metal) platform (e.g Arm M4)

Build on Ubuntu 20

Prerequisistes: GCC (e.g. build-essential), xmake, git

mkdir git; cd git
git clone https://github.com/RussellHaley/mircVM.git
cd mircVM
git submodule update --init
xmake b

Drop into the build directory and run set the run-file script executable:

chmod +x run-test.lua

Then run:

#Defaults to the existing sieve.c file
./run-test.lua <filename>

About

License:Other


Languages

Language:C 45.6%Language:Lua 40.0%Language:CMake 13.0%Language:Shell 1.3%