This repo provides an implementation of the GNU Interface Layer (GIL) and standard library for g++.
Here is a simple "Hello, world!" in C++.
#include "gil/std.hpp"
using namespace gil::std;
volatile auto run = main<{
str::puts(str::literal("Hello, world!\n"))
}>;To run the program, run
g++ -std=c++23 -Based hello_world.cpp -o -Note
The above command only works if you invoke g++ from the root of this repo; otherwise, you will have to provide the full path to the required abstract system emulator drivers (ased) folder.
hello_world.cppBe greeted in all of the languages supported by YVR!
hello_world_vmi.cppSame as above, but without using the standard library.
calculator.cppPerform a single binary operation on a pair of 64-bit signed integers.
mergesort.cppMerge sort a comma-separated list of 64-bit signed integers.
