From 066a378ca09ccc5d8074a942cf4bf1b9d4f40729 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 10:04:54 +0000 Subject: 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 --- doc/cpsc.1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') 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 -- cgit v1.3.1-4-g156e