atom run compiles source to register bytecode and executes it by default. Use atom compile or atomc to write bytecode. The current format has the ATOMB versioned header (format 4) and validates operands, instruction structure, register use, closures and control flow at decode. Use matching toolchain releases. The bytecode file for an entry does not by itself bundle every source import.
Use atom run app.atom --jit to request JIT execution. The optional MIR engine on Linux x86-64/ARM64 recognizes hot entries and loop backedges. There is a warm-up phase. In this build a function can become hot on its eighth call or after a backedge threshold based on prototype size. Executable-memory policy or unsupported paths can leave execution in the VM. Profile to confirm actual native entries.
atom emit-c app.atom -o app.c emits C17 with native control flow and guarded operations plus packaged metadata, bytecode and runtime integration. atom build app.atom -o app emits and compiles that C and links the runtime. This is AOT execution, using shared runtime calls for dynamic operations. Generated C and the Atom SDK must match in native ABI. Use a target SDK built for the deployment architecture and C ABI.
atom build needs the native C compiler and Atom link inputs. The CLI defaults to cc on Unix and gcc on Windows. Use ATOM_CC for a particular GCC or Clang executable. On Linux --strip removes symbol/debug data. --debug enables debug information in generated C output. Those flags are mutually exclusive. Debuggers inspect generated C and native runtime code.
atom publish app.atom -o app on Linux or Windows appends a validated bytecode package to the CLI executable, which runs the package through the VM. It runs without a C compiler at publish or launch time. It uses the originating CLI's compiled module set rather than AOT's module selection.
Both packagers include transitive file imports and named resources. Native builds select registered standard modules used in the packaged programs, together with needed runtime code. Neither distribution mechanism copies dynamically loaded native dependencies. Keep required shared libraries available, provide the deployed application with trust roots when applicable, and include Atom's MIT license and applicable dependency notices from the SDK.
A Linux standalone executable still depends on the OS and target ABI. MinGW packages may require compiler support DLLs if shared support libraries were selected. macOS builds target the chosen system architecture and use the platform's runtime loader. Native applications use the loader, signing and distribution rules of their target.