To get started with Virgil III you will require:
- 25MB of disk space
- 200MB of RAM
- bash shell
- One of:
- A Java 1.3 or later virtual machine
- An x86 Linux machine
- An x86 MacOS X machine
Set up is super easy! Just clone this repository. No build step needed!
Optionally:
- Add
$VIRGIL_PATH/binto your$PATHto usev3candv3c-*commands from anywhere - Add
$VIRGIL_PATH/bin/devto your$PATHif you are working on the compiler/runtime itself
The commands in the bin/ directory will automatically configure themselves when you first run them. You should find:
v3i- to run and test programs in the interpreterv3c- directly invoke the Virgil compilerv3c-host- compile to the host target (i.e. this computer)
Additional v3c commands allow you to compile programs for each supported target platform.
Virgil includes a compiler that can produce binaries for various target platforms:
jar- Java Virtual Machine 1.3 or laterx86-darwin- Mac OS X 10.3 to 10.9 / 32-bit x86 processorx86-64-darwin- Mac OS X 10.9 or later / 64-bit x86 processorx86-linux- Linux 2.2 or later / 32-bit x86 processorx86-64-linux- Linux 2.4 or later / 64-bit x86 processorwasm- WebAssembly / 32-bit
For convenience, each platform has an associated v3c command that configures the compiler to generate a binary for that platform:
v3c-jar- compile for the JVM platform and produce .jar file and an executable wrapper scriptv3c-x86-darwin- compile for the x86-darwin platform and produce an executablev3c-x86-64-darwin- compile for the x86-64-darwin platform and produce an executablev3c-x86-linux- compile for the x86-linux platform and produce an executablev3c-x86-64-linux- compile for the x86-64-linux platform and produce an executable
See BuildingAndRunningPrograms to see more about how to compile and run Virgil programs.
Learn more about the language through the tutorial, which describes the main features by way of many example programs.