Skip to content

`noxc` CLI Compiler

The noxc command compiles a Nox source file and outputs its .noxc disassembly.

Terminal window
noxc <file.nox> [options]
FlagDescription
-o, --output <path>Output path for .noxc file (default: beside input)
--plugin <path>Load a C plugin for type resolution (repeatable)
--stdoutPrint disassembly to stdout instead of writing a file
Terminal window
# Compile to .noxc file (written beside the source)
noxc script.nox
# Output to specific path
noxc script.nox -o /tmp/output.noxc
# Print to stdout
noxc script.nox --stdout
# With plugin for type resolution
noxc script.nox --plugin=./libdb.dylib
Terminal window
./gradlew nativeCompile
# Produces: build/native/nativeCompile/noxc