DEVELOPMENT EDITION · 769442725406
Toolchain Manual

veradic emit

Check, normally prove, and write one chosen program representation without linking or running it.

veradic [GLOBAL OPTIONS] emit [COMPILE OPTIONS] [--emit KIND] [-o FILE] [FILES...]
KIND Default extension Representation
llvm .ll Textual LLVM IR; default
asm .s Host assembly
obj .o Host object code
core .core Textual Verada Core after lowering/move handling
veradic emit --emit core --project verada.toml -o application.core
veradic emit --emit llvm --project verada.toml -o application.ll
veradic emit --emit asm --project verada.toml -o application.s
veradic emit --emit obj --project verada.toml -o application.o

Input/project selection and default proof are shared with build. --advisory/--no-prove change assurance and runtime-check retention as with build. Core output still follows the selected proof policy; it is not a parse-only shortcut. --show-flow and --dump-bir print extra stdout text separately from the emitted file.

-o/--output names the file; otherwise use the lowercased main component plus the selected extension, with a.out fallback. Parent directories must exist. -g affects LLVM/assembly/object native generation, using unoptimized output and debug metadata; Core text has no DWARF. --dump-bir prints the lowered form before the selected mode erases ghost code; emitted Core reflects that mode's ghost retention. Textual check/assertion nodes are not themselves evidence that an optimized native check remains: native proof-based elision is a separate code-generation decision. --cc is accepted but emit does not link or compile the project's C implementation. It does not validate that external symbols can be resolved. Proof controls have their normal effects.

The native representations are verified/optimized for the host by LLVM. Core text uses the shared intermediate model rather than a portable binary interface. Inspect formats can change with the compiler. An emitted .o needs the matching runtime and a deliberately constructed link step; build is the supported complete executable workflow.

Success normally prints a proof summary and wrote FILE, exits 0. Diagnostics use stderr in human mode; JSON diagnostics share stdout with the normal wrote message. Failure exits 1; no new file is guaranteed, and an older destination may remain. Core/native output can replace an existing file. No source mutation or program execution occurs. Proof/cache/interface and enabled certificate/dump effects remain possible; native unit-object caching from build is not required to emit this single representation.

A check kept at run time is checked as the program runs; leak freedom and termination are proved, not checked at run time. See mode limits.