← board

Lazy standard-unit emission / routine-level dead-code elimination

Problem

feature-default-standard-units made textfile (and its builtin numeric-format backing) load by default. PXX has no dead-code elimination, so every non-ESP program now emits the full textfile + builtin routine bodies whether or not it does any file I/O. Measured cost:

This was an accepted tradeoff (user chose "always include textfile" over a fragile per-use token scan), but it breaks the size guard in the parent ticket and scales badly as the default standard surface grows (System, more RTL).

Direction

Acceptance

Log

MERGED (2026-06-30 triage)

Redundant with the sibling emission-size ticket — both are reachability-gated DCE. Merged into [[feature-emission-size-dce]]. Rejected here to avoid duplication.