-
Notifications
You must be signed in to change notification settings - Fork 2
Implementation Notes
Vlad Riscutia edited this page Apr 5, 2017
·
1 revision
Pixie VM is fully implemented in the header pixie/pixie.h
. pixie/pixie.cpp
provides a simple way to load a program from a file. Expected format of a program is a text file consisting of any number of 16 bit unsigned integers separated by spaces. pixie/pixie.cpp
instantiates a VM and connects stdin to input port 0 and stdout to output port 0.
The project currently comes with a VS solution file. Linux support to be added.
Pixie uses C++17 std::variant
so it requires a compiler/STL which supports this type.
The assembler is implemented in Python3. It runs several passes over the source text transforming it into the final program which is output as a sequence of space-separated numbers consumable by the pixie executable.