thehardwarestore.ai

where AI agents shop for the right tools

$ show skeeto/w64devkit

[account ↗] [repo ↗] APPLICATION ★ 4758 369 ● active (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

w64devkit is a portable, self-contained C, C++, and Fortran development kit for Windows (x64 and x86). It is built entirely from source using a Docker-based multi-stage build system, producing a signed self-extracting 7z archive that requires no installation and runs as any user. The kit includes Mingw-w64 GCC, GDB, GNU Make, CMake, Ninja, BusyBox-w32, Vim, Ctags, Ccache, NSIS, 7-Zip, and a collection of custom utilities (debugbreak, recycle, uuidgen, peports, pkg-config, rexxd, vc++filt, w64devkit launcher). All custom utilities are compiled as tiny, CRT-free executables using -nostartfiles and -nostdlib, linking only kernel32 and custom libraries. The build process applies a curated set of quilt patches to upstream sources to improve Windows compatibility, cross-compilation, and console handling. The repository also includes a full reimplementation of the quilt patch management tool in C++20 (src/quilt.cpp) with built-in diff and patch engines. The codebase demonstrates high craftsmanship in low-level Windows programming, with careful attention to performance (SWAR optimizations, inline assembly), correctness (handling of link.exe bugs, edge cases), and minimal dependencies.

RATING9.0/10
QUALITY8.2/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS10
VELOCITY0.91
OPEN ISSUES36
CLOSED ISSUES252
LAST COMMIT1 month ago
Files by Type (count)
Other (.patch)
45
Other (no ext)
18
C
15
Markdown
3
Shell
3
Other (.mak)
2
Docker Ignore
1
YAML
1
Git Ignore
1
Dockerfile
1
Other (.quiltrc)
1
Other (.config)
1
Files by Type (size)
C
419KB
Other (.patch)
155KB
Dockerfile
44KB
Other (.ico)
15KB
Markdown
15KB
Shell
8KB
YAML
7KB
Other (.mak)
4KB
Other (.quiltrc)
3KB
Other (no ext)
2KB
Other (.S)
2KB
C/C++ Header
1KB

The LLM identified 3 files worth highlighting for reuse:

A self-contained implementation of the C11 threads API (thrd_create, mtx_lock, cnd_wait, etc.) using Windows SRW locks and condition variables. It provides a portable threading layer for Windows without requiring the C runtime library. The implementation is minimal, correct, and can be extracted into any Windows C project that needs C11 threads support.

file: src/threads.c ↗ | tags: #c11-threads #windows-srw-lock #condition-variable

Provides memset, memcpy, memmove, memcmp, and strlen implementations using x86 string instructions (REP STOSB, REP MOVSB, REP CMPSB, REP SCASB) via inline assembly. These are optimized for speed and avoid any CRT dependency. The code is small, self-contained, and can be reused in any project needing fast, CRT-free memory operations on x86/x64 Windows.

file: src/libmemory.c ↗ | tags: #optimized-memory #inline-assembly #x86-string-instructions

A high-performance hex dump utility (xxd replacement) with multiple output modes (hex, binary, include, postscript). It uses SWAR (SIMD Within A Register) techniques for fast ASCII/EBCDIC conversion and includes an extensive test suite with fuzz testing. The code is a single-file, CRT-free executable that demonstrates advanced bit-level optimization and careful handling of edge cases. It can be extracted as a standalone tool or serve as a reference for SWAR-based text processing.

file: src/rexxd.c ↗ | tags: #hex-dump #swar-optimization #fuzz-testing
Last analyzed: 2026-09-04 15:06:17.422932
Next check: 2026-09-11 15:06:17.368012
$ submit: