350 resources (all variant) · LZMA-compressed embed · versioned with the binary

VFS Built-in Resources Reference

Everything script compilation needs lives inside the exe — the physical substance of "zero install on the target machine". Packaging is per variant at build time: unselected extension headers never enter the VFS (isolation verified by runtime probes).

/XServer/ — the SDK trio

PathContents
/xs/xsbase.hthe contract header: 14 symbols, 20 APIs, structs and enums — #include <xsbase.h> pulls in the next two automatically
/xs/xrt_decl.hxrt's full public declarations (3,030 API prototypes)
/xs/libtcc.hthe nested-compilation API declarations

These three headers are versioned with the binary (packed from the source tree at build time) — "old header, new library" drift cannot exist.

/tcc/ — the header tree

PathContents
/tcc/include/tcclib.hTCC runtime helper declarations
/tcc/include_win/**Windows SDK headers (pruned to a keep-set: all of winapi plus curl)
/tcc/include_linux/**the Linux side's standard headers (the full C99/C11 set)

The Windows side has one more implicit channel: msvcrt and kernel32 are mounted automatically in memory-compilation mode — scripts use the standard library and basic Win32 APIs without a single line of link configuration.

/tcc/ — library definitions

  • /tcc/lib/*.def: kernel32, msvcrt, user32, gdi32, shell32, ole32, oleaut32, ws2_32, imm32 — referenced directly via #pragma comment(lib, ...) or tcc_add_library
  • /tcc/lib/libtcc1.a: the TCC runtime helper library (used automatically by the compiler)

This library surface means: processes (CreateProcess), COM (Excel automation), native sockets and shell operations are all directly available to scripts — the capability-boundary discussion is in chapter 44.

Variant differences

VariantExtra VFS contentsExtra symbols
default——
sqlitesqlite3.h enters the VFS+272 (sqlite3_*)
xtpxtp2.h enters the VFS+13 (xtp2_*)
sqlite xtpboth headers enter+285
xllm / xllm-sessiontwo headers into the VFS+98 (xllm_*/xllmSession_*)
xmail / xsmtp xpop3 ximapxmail header tree + protocol headers + the xrt shim layer+283 (xrtMail*/Smtp/Pop3/Imap*)
md4cmd4c.h + md4c-html.h+2 (md_parse/md_html)
xacmexacme header tree + flow headers+20 (xrtAcme*/xacmeClient*)
qrcodegenqrcodegen.h + qrpng.h+10 (qrcodegen_*/png)
allall ten library header trees+700

The isolation is strict: under the default variant, a script that includes <sqlite3.h> gets a "header not found" compile error, and referencing sqlite3_* symbols fails at link time — unselected capabilities do not exist in the process; not hidden, simply absent.

The build-time packer (gen_tcc_resources.py) skips repacking unchanged inputs via an input SHA256 digest; each VFS entry picks STORE or LZMA storage by compression benefit. For the runtime APIs that operate on the VFS, see the nested-compilation reference · the VFS file layer.