RC RANDOM CHAOS

Borland DOS Compilers Reverse-Engineered from Binaries

· via Hacker News

Original source

Borland's DOS compilers, rebuilt from their own binaries

Hacker News →

A project has successfully recovered and annotated the source code for classic Borland DOS compilers by analyzing the original executables through byte-for-byte verification. The code has been enhanced with meaningful variable names, labeled record fields, and documentation explaining implementation details. The methodology is being applied to multiple Borland and Turbo versions.

The verification infrastructure validates sources against extensive test suites. Approximately 1,836 test compiles compare output from the original tools and reference implementations, with modifications tested across different memory layouts and configurations. Coverage tracking shows 83% of compiler code is exercised during testing. The “modding build” feature allows modifications while maintaining compatibility verification.

This effort preserves development tools from the DOS era that are no longer actively maintained, making them available for study, modification, and potential porting. The recovered sources are provided for educational and preservation purposes, with the accompanying build tools and scripts released under MIT license.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.