Skip to content

thekaigonzalez/VOLT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

165 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VOLT (Versatile-Optimized-Language-Transpiler)

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 int

to

#define byte unsigned char

By 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.

To install

git clone https://github.com/thekaigonzalez/VOLT.git
cd VOLT && cd src
make

Options

volt -h

-o, --output -> The output filename

Sets the output filename to the specified filename. The default filename is a.bin if no filename is specified.

-S, --compiler -> The compiler support for VOLT

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

Compatible Formats

About

VOLT NexFUSE/OpenLUD compiler for x86_64 devices

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors