-
Version 26.02.21 Stable
released this
2026-02-21 17:46:13 +01:00 | 0 commits to main since this releaseDownload cowc.rs and install the rust toolset: https://rust-lang.org/tools/install/
Build cowc
rustc -O cowc.rs -o cowcCompile a .cow program (native)
./cowc hello.cow -o helloKeep the generated Rust (helpful for inspection/debugging):
./cowc hello.cow --keep-rs -o helloOnly emit Rust and stop:
./cowc hello.cow --emit-rs -o helloCross-compiling
Install the target:
rustup target add x86_64-pc-windows-gnuCompile:
./cowc --target x86_64-pc-windows-gnu hello.cow -o hello.exeNotes:
- Cross targets require the Rust std components for that target.
- Some targets also require a system linker/toolchain;
rustcwill tell you if something is missing.
Max performance
After running the benchmarks, it turns out that fat LTO doesn’t provide any real benefit for most COW applications.
You can enable it with the LTO flag
./cowc hello.cow --lto -o helloIn the previous version, output was automatically buffered and only written when the program finished for performance.
This is now an optional flag, since the behavior made some programs unusable. See the issue here./cowc hello.cow --vec-stdout -o helloFor host builds, keep the default native CPU tuning (
-C target-cpu=native). Disable it with:./cowc hello.cow --no-native-cpu -o helloDownloads