Skip to content
Xen / docs

Search documentation

English · v0.1.0-demo.2

Type to search the documentation.

    한국어
    Xen / reference v0.1.0-demo.2

    Xen compiler distribution

    This archive contains the compiled Linux Xen compiler, its standard library, learning examples and license notices. The archive name identifies the compiler’s host architecture; VERSION identifies its release version.

    Debian and Ubuntu users can also install the xen-lang .deb from the same release. See the installation guide for CPU selection, checksum verification, supported OS versions and apt commands.

    Keep bin/ and stdlib/ together when moving the distribution. The .xen files in stdlib/ are runtime modules used by the compiler’s source loader.

    From the extracted directory:

    Terminal window
    ./bin/xen version
    ./bin/xen check examples/demo.xen
    ./bin/xen run examples/demo.xen
    ./bin/xen build examples/demo.xen -o app
    ./app
    ./bin/xen test std.string

    Use an archive matching the CPU and OS that will execute the compiler. Its host system libraries must be available. Generated Xen programs are static Linux executables and do not require a C compiler, assembler, linker or libc.

    The compiler can emit both x86_64-linux and aarch64-linux programs with --target. Executing a generated program requires a compatible host or a separately configured emulator. macOS is unsupported.

    See examples/README.md and the language documentation for learning material. Licensing is described in LICENSE, NOTICE and THIRD_PARTY.md.