aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-17 10:04:54 +0000
committer_ov4 <ov4@ov4.org>2026-10-17 10:04:54 +0000
commit066a378ca09ccc5d8074a942cf4bf1b9d4f40729 (patch)
tree9a6ff973e6ef07f6fec425413868805d6aed4b03 /doc
parent0305500e31eda6fe6da84f88748fc20843aebbce (diff)
fix(driver): default native output to .exe on Windows
Without -o, cpsc saved test.out on every OS, which Windows cannot run directly. Use .exe under _WIN32 and keep .out elsewhere; update the manual and architecture notes accordingly. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/cpsc.1.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/cpsc.1.md b/doc/cpsc.1.md
index eb5140b..3fe1778 100644
--- a/doc/cpsc.1.md
+++ b/doc/cpsc.1.md
@@ -14,7 +14,7 @@ cpsc - compile and run CIE pseudocode
Compile one or more pseudocode source files to a native executable, or to textual LLVM IR with **-S**. Options may appear among the source paths. Source input from stdin is not supported.
-Without **-o**, save beside the entry source file, replacing its extension with `.out` for an executable or `.ll` for IR. This naming also applies on Windows. With **-r** alone, run without saving a file.
+Without **-o**, save beside the entry source file, replacing its extension with `.exe` on Windows or `.out` elsewhere for an executable, or `.ll` for IR. With **-r** alone, run without saving a file.
Each input is a compilation unit. Use top-level `INCLUDE "lib.cps"` to import another input's exported definitions, including its transitive imports. Paths are relative to the including source; every included file must also appear on the command line. Repeated includes and include cycles are harmless. Giving the same input twice, including symbolic or hard links, is an error. Duplicate definitions across files are errors even if the files do not include each other.
@@ -55,7 +55,7 @@ The executable has one of the following execution modes, selected when it was bu
# EXAMPLES
-Compile and save `test.out` beside `test.cps`:
+Compile and save `test.out` (`test.exe` on Windows) beside `test.cps`:
```sh
cpsc test.cps