SANGUIS TOOLCHAIN 4.0, WINDOWS EDITION
==============================================

What is here: the same kit as the POSIX release, running entirely on native
Windows. The compiler floor, the interpreter, the sys-cell blob pipeline
(compile, lay out, pack, load, call) and every shipped example run on
Windows with no WSL, no Unix tooling, and no external packages. The floor
reads and writes .sanguis/.bc and runs them with the shipped binaries in
windows\bin. The Windows floor keeps one calling-convention fact in mind:
the compiled blob bodies read the System V integer argument registers, so
the drivers call them through function pointers typed with
__attribute__((sysv_abi)); the shipped cells take at most five integer
arguments, and the shipped drivers already carry the attribute.

Quickstart (nothing to install; PowerShell and cmd are built into Windows):

  cd <kit root>
  windows\smoke.bat

That runs the whole verification, about a minute:

  1  the cell demo, 10 known answers   (sg.bat + mkblob.ps1 + blobrun.exe)
  2  hello                             (sg.bat + bch.exe)
  3  the roles battery                 (5 roles, t1..t6 prints)
  4  the shader against its C reference(3 frames, 9 probes per frame, 0 mismatches)
  5  the seed reproduces itself        (fixed point, byte-identical artifact)

One-click GUI (Windows): run sanguis-toolchain-4.0-setup.exe, the GUI
setup beside this kit's zip. It carries the whole kit inside itself, installs
to %LOCALAPPDATA%\Sanguis\4.0 (the window takes another folder), writes
the command shims, and - with the checkbox kept - records SANGUIS_HOME and puts
the bin on the user PATH through this kit's own windows\addpath.ps1. For
scripts: --target DIR [--no-path], --uninstall [DIR].

Installing (optional; the unpacked folder above keeps working as it is):

  windows\sanguis-setup.exe <target> [\path]  the installer binary: copy + shims,
                                       optional PATH/SANGUIS_HOME (via /path),
                                       --dry-run to try, --uninstall to remove,
                                       --no-env for a copy with no registry writes
  windows\install.bat <target>         the same verbs as a script
  windows\install.bat <target> /path   also put <target>\bin on the user PATH
                                       and set SANGUIS_HOME
  windows\uninstall.bat <target>       remove the copy (never the unzip)

After install, open a new terminal and sg, mkblob, smoke, bch, blobrun,
shade work from anywhere. The user PATH update reads the current value,
appends only if missing, and writes it back whole; it never truncates.

Single steps:

  windows\sg.bat prog.sanguis prog.bc          compile (no envelope)
  windows\bin\bch.exe prog.bc main             run a float program
  powershell -File windows\mkblob.ps1 prog.bc prog.mod   sys cells: pack
  windows\bin\blobrun.exe prog.mod             call a sys-cell module from C
  windows\bin\shade.exe prog.mod 160 120 3     the mandel shader example

Rebuilding the three tools (optional; needs zig on PATH):

  windows\build-exes.bat

Notes specific to Windows:

- The text module (.mod) is plain text: BLOB1/BLOBOFF/BLOB2. mkblob.ps1
  writes it with LF line endings; the drivers accept CR stripped or not.
- The Windows alarm in the two drivers is a thread that sleeps the limit
  and names the last cell entered before stopping the process when a cell
  spins; the POSIX alarm names the exact blob offset instead.
- The sys-cell budget and stack guards are still off in the kit's modules
  (the cells are called straight from C, as the floor calls the runtime).
- The seed compiler artifact (seed\compiler.bc) is the pinned seed; smoke
  step 5 recompiles the compiler source with it and demands byte equality.

