VOLT is an extremely small, fast, and portable implementation of LR Assembly. It is designed to compile for the NexFUSE & OpenLUD platforms, as an alternative to the standard LunarRED compiler.
NOTE: to configure VOLT to generate 8-bit binaries, open VOLT.h and change
#define byte intto
#define byte unsigned charBy default the makefile will already build an 8-bit and 32-bit executable, allowing you to compile code for 8-bit VMs or 32-bit VMs.
git clone https://github.com/thekaigonzalez/VOLT.git
cd VOLT && cd src
makevolt -hSets the output filename to the specified filename. The default filename is
a.bin if no filename is specified.
Selects the compiler support for VOLT.
volt -S nexfuse # standard NexFUSE compiler features ONLY
volt -S openlud # standard OpenLUD compiler features ONLY
volt -S mercury # standard Mercury compiler features ONLY,
# NOTE: this option MUST be used to compile
# binaries for the MercuryPIC VM, as it modifies
# statement delimiters to be supported by MercuryPIC
volt -S std # standard NexFUSE + OpenLUD compiler features ONLY, compiler/bytecode extensions disabled
# NOTE: this option disables all compiler warnings,
# this is primarily meant for debugging/quick build/run cycles,
# do not use if you are uncertain about your code standards.
volt -S any # any compiler features allowed