diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-13 09:01:59 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-13 09:01:59 +0000 |
| commit | 27b630db5c33b050cd903172a11ab96bd73e636e (patch) | |
| tree | 3af6590fcd36aaf59b1e8e1622c569b1c23e9521 /doc/cpsc.md | |
| parent | 5d5c14920a9aa3397d4b479c22e37392be5557f4 (diff) | |
docs: move compiler setup guides into doc
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'doc/cpsc.md')
| -rw-r--r-- | doc/cpsc.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/cpsc.md b/doc/cpsc.md index 3aa89a8..bfd54d0 100644 --- a/doc/cpsc.md +++ b/doc/cpsc.md @@ -20,11 +20,11 @@ Without **-o** or **-r**, replace the source filename's extension with `.ir` and : Save IR to the specified path. May be specified only once. With **-r**, keep this file even if execution fails. **-r** -: Run the compiled program with the runner selected at build time (see BUILD MODES). Without **-o**, do not save permanent IR. The program inherits stdin, stdout and stderr; `INPUT` can read terminal or piped input. +: Run the compiled program with the runner selected at build time (see EXECUTION MODES). Without **-o**, do not save permanent IR. The program inherits stdin, stdout and stderr; `INPUT` can read terminal or piped input. -# BUILD MODES +# EXECUTION MODES -Initial CMake configuration requires **-DCPSC_RUN_MODE=PATH**, **EMBEDDED** or **NONE**. No mode is selected by default. All modes compile to IR using LLVM libraries built into the compiler; NONE disables execution, not IR generation. +The executable has one of the following execution modes, selected when it was built. All modes can compile to LLVM IR; the mode determines whether and how **-r** runs the program. **PATH** : Run `lli` from PATH. If it cannot be found, **-r** fails before compilation or output writing. Without **-o**, write temporary IR and delete it afterward, including on execution failure. |
