From 27b630db5c33b050cd903172a11ab96bd73e636e Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 13 Oct 2026 09:01:59 +0000 Subject: docs: move compiler setup guides into doc Co-Authored-By: Claude Fable 5.1 --- doc/cpsc.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/cpsc.md') 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. -- cgit v1.3.1-4-g156e