Xen / examples v0.1.0-demo.2
A greeting
This topic is not available in the selected language or version. Showing the start of this section.
A greeting
Run from the repository or distribution root. Put xen on PATH, or substitute ./bin/xen.
xen check examples/arm64_core.xenxen run examples/arm64_core.xenExpected output
Section titled “Expected output”Hello, Xen!Complete source
Section titled “Complete source”// SPDX-License-Identifier: MIT OR Apache-2.0fn main() { let name = "Xen"; println("Hello, " + name + "!");}Build an executable
Section titled “Build an executable”xen build examples/arm64_core.xen -o appRun the generated executable on a compatible Linux machine.