Skip to content
Xen / docs

Search documentation

English · v0.1.0-demo.2

Type to search the documentation.

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

    A greeting

    A greeting

    Run from the repository or distribution root. Put xen on PATH, or substitute ./bin/xen.

    Terminal window
    xen check examples/arm64_core.xen
    xen run examples/arm64_core.xen
    Hello, Xen!
    arm64_core.xen
    // SPDX-License-Identifier: MIT OR Apache-2.0
    fn main() {
    let name = "Xen";
    println("Hello, " + name + "!");
    }

    Download file

    Terminal window
    xen build examples/arm64_core.xen -o app

    Run the generated executable on a compatible Linux machine.