Mini-vm

A small, register-based virtual machine (bytecode interpreter) in C.


Project maintained by philipaconrad Hosted on GitHub Pages — Theme by mattgraham

A small vm for small projects

Mini-vm is a small (~300 SLOC) bytecode interpreter meant to be used as a starting point for home-made interpreted languages.


How it works:

How the virtual machine is built:

Instruction Format:

Each instruction consists of 4 bytes, stored in little-endian byte order:

  0   1   2   3
+---+---+---+---+
| A | B | C | D |
+---+---+---+---+

Get:

$ git clone https://github.com/philipaconrad/mini-vm.git

Build:


License

Mini-vm is under the liberal MIT License, so hack away!

Authors and Contributors

Currently, Mini-vm is maintained by @philipaconrad. If you'd like to contribute, just make a pull request.

Support or Contact

Having trouble with Mini-vm? Check out the issues page and we’ll help you sort it out.