On this page
Build and execution lifecycle
Use check for language/flow feedback, prove for verification without output, build for an executable, run for an in-memory JIT execution, and emit for inspection or an object file. All compilation actions start from the same loaded and lowered program. A successful strict code-generating action passes flow analysis and proof before code generation.
Development to delivery
veradic check --project verada.toml
veradic prove --project verada.toml
veradic run --project verada.toml
veradic build --project verada.toml -o app
./appBuild does not run the executable. Run does not leave an executable for deployment. Prove and check do not validate whether a C compiler can link your program. Emit object output is not a complete linked program and does not automatically arrange the embedded runtime.
Execution mode table
| Mode | Proof | Failed proof | Ghost code | Runtime behavior |
|---|---|---|---|---|
Default build/emit, run without a project, --proof full |
Attempted | Blocks output/execution | Erased | Proved checks are left out of the code |
--proof cached (default for run in a project) |
Not attempted; the proof cache's answers are used | A failure the cache knows is a warning | Erased | Checks the cache knows are proved are left out; the others run, counted by B8012, except a contract that needs ghost code |
--advisory |
Attempted | Proof diagnostics become warnings | Retained | Unproved checks run |
--no-prove |
Skipped | Not determined | Erased | Every check runs, except a contract that needs ghost code (B8007) |
--no-prove --advisory |
Skipped | Not determined | Retained | Every check runs |
A check that runs reports its failure when the program reaches it. Leak freedom, loop and subprogram variants and pragma Assume are proof obligations only: no mode checks them at run time. See the verification mode limits.
No mode relaxes syntax, type, initialization, effects or ownership errors. Nonexecutable specification features and resource/environment failures still require their documented limits. prove ignores proof-skipping and does not downgrade failures under advisory. Do not interpret a development executable as having a strict proof certificate.
Entry, working directory and arguments
Native main receives the OS arguments in Ada.Command_Line. run passes the program no arguments. For an application that needs arguments, build and invoke the executable:
veradic build --project docs/manuals/examples/toolchain/arguments/verada.toml -o args-demo
./args-demo one twoThe example prints args: 2. Running its project through veradic run prints args: 0. --project locates sources but does not change the program's working directory. Relative file I/O resolves from the directory where you invoke the process. Normal native main exits 0; this library subset has no declared user Set_Exit_Status operation.
Output, input and failures
JIT runtime standard output is captured and returned through the CLI; standard error and foreign code's direct writes can behave differently. Program output is not structured compiler diagnostics. Native file and console I/O use the supplied Ada.Text_IO subset. Programs can create files and call foreign code; JIT does not provide transactional rollback.
A failing JIT check prints the source site and B-code, storage failure reports Storage_Error, and an unhandled exception reports its name; run exits 1. Foreign synchronous faults can report B7013. Native checks/storage/exception failure print runtime messages and terminate; OS foreign faults need native debugging. Compare run and platform limits.
Optimization and deployment
Normal native compilation uses O2, while debug builds (-g) use no optimization and describe source variables. Per-unit native object caching can avoid recompiling unchanged modules. Linking still occurs. A standalone executable does not need the compiler checkout or its Haskell libraries; it needs its OS/ABI and any system/foreign dynamic dependencies actually linked into it. Audit those on the delivery host. The compiler installation's Haskell library bundle is a different deployment concern from the generated application's runtime.