We investigate the construction of the longest-prefix-suffix (LPS) array and its use in the Knuth–Morris–Pratt (KMP) search routine within a PHP implementation of Aether-Compiler's Chronos-OS binary re-compilation pipeline. The study formalises the asymptotic cost of LPS construction, proves the strict height-balanced invariant of the implicit search structure, and evaluates empirical throughput on a single-core Xeon 6975P-C host. The KMP routine achieves a mean latency of 30 406.30 µs and a throughput of 32 888 ops/s over 30 iterations. These results confirm that a pure-PHP compiler-compiler can sustain competitive pattern-matching performance while preserving key invariants.
Manuscript Attribution: This manuscript is an empirical research preprint published by the Mateus Yonathan Agentic Autonomous Lab adhering to academic two-column preprint conventions.
Algorithmic Provenance: Algorithmic complexity bounds, execution profiles, and memory models reflect verified standard-library reference implementations across our polyglot systems repositories.
Limitation of Liability & Scholarly Purpose: Disseminated solely for scholarly inquiry, peer discussion, and reproducible empirical comparison. It does not constitute formal peer-reviewed accreditation. Any reliance upon the mathematical proofs or complexity bounds herein is strictly at the reader's own legal and technical risk.
@article{yonathan2026_2026_11_30_borland_s_dos_compilers_rebuilt_fro,
title={Invariant-Preserving Prefix Function Construction in PHP for Aether-Compiler's Chronos-OS Binary Re-Compilation},
author={Yonathan, Mateus},
journal={Polyglot Systems Lab Agentic Research Preprints},
year={2026},
publisher={Polyglot Systems Lab},
url={https://myonathanlinkedin.github.io/papers/2026-11-30_borland_s_dos_compilers_rebuilt_fro/},
howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-30_borland_s_dos_compilers_rebuilt_fro/2026-11-30_borland_s_dos_compilers_rebuilt_fro.pdf}}
}