XU XUv0.13.1
中文

Blog

Xu 0.12.6: complete C FFI & xu cbind, Phone game host, memory-safety gate, and optimizer gains

2026-11-18 · Xu v0.12.6

Xu 0.12.6 delivers a complete cross-architecture C FFI stack with automated header generation, native SDL GPU mobile game packaging, an expanded Zero-GC memory-safety verification gate, and a broad wave of MIR optimizer, x64/ARM64 codegen, and runtime hot-path optimizations.

Complete C FFI and xu cbind

C interoperability now covers full object, application, and native library linking across ARM64, x64, RISC-V, and LoongArch backends. New language and ABI features include C unions and bitfields, extern globals, C closure callbacks with trampoline dispatch, and improved FFI diagnostics. The new xu cbind subcommand emits C header declarations together with compile-time layout assertions directly from Xu FFI surfaces.

Native Phone Game Host and #app

Mobile packaging now supports xu build --phone --phone-profile game alongside the existing UI profile. The new #app standard-library module and updated xu-phone / xu-native templates package native SDL GPU mobile games with embedded resources, an ARM64 stack-switching runtime host, and safe-area, back-key, and resume lifecycle events.

Memory Safety and Zero-GC Hardening

Static borrow, move, and unsafe enforcement has been tightened across containers, generics, closures, match/select/or paths, and xu coroutine spawns. MIR lowering and the runtime add copy-on-write string byte writes, immortal static headers for boxed zero-sized structs, 16KB guard pages on task stacks, integer overflow traps, and a self-contained 67-check memsafe-gate suite running in CI under XU_DEBUG_FREE=1.

MIR Optimizer, Codegen, and Runtime Performance

Upgrade the full SDK

All six native platform SDKs (Linux x64/arm64, macOS arm64/x64, Windows x64/arm64) passed full self-host fixed-point verification, runtime/package protocol tests, and the 67-check memory-safety gate.

Download the SDK · SHA-256 checksums · Release notes