7.9. aot — AOT Generation Driver
The aot tool compiles .das files ahead of time into C++ for linking
into a host application. It is what the C++ integration tutorial
scaffolds (tutorials/integration/*/CMakeLists.standalone.cmake) and
this repo’s own build invoke; it accepts multiple inputs per run, so
build systems can batch.
7.9.1. Quick start
Generate AOT C++ for one script:
daslang utils/aot/main.das -- -aot my_script.das output.cpp
Generate a standalone context (a directory with .h + .cpp):
daslang utils/aot/main.das -- -ctx my_script.das output_dir/
The AOT workflow — registering generated sources, hash mismatches, and the CMake integration — is covered by the C++ integration tutorials.
See also
C++ Integration: AOT Compilation – the end-to-end AOT integration tutorial