koio is a lightweight C tool that embeds files directly into C source code as static data. It provides an fopen shim (ko_fopen) that checks a virtual filesystem of embedded files before falling back to the real filesystem. The tool generates a bundle.c file containing file contents as string literals, along with load/unload functions. It weighs in at 312 lines of C, produces a ~40 KiB binary when statically linked to musl, and requires only POSIX 2008 and a C99 compiler.
Sort: