HeadlinesBriefing HeadlinesBriefing.com

Borland C++ 2.0 Compiler Rebuilt Byte-for-Byte from Original Binaries

Hacker News •
×

GitHub user abedegno has launched the borland-reborn project, recovering source code for classic Borland DOS compilers directly from their published executables. The first release targets Borland C++ 2.0 (1991), rebuilding its compiler BCC.EXE and 21 other tools — TLINK, TASM, MAKE, and protected-mode variants — so that every program reassembles byte-identical to the original Borland toolchain output.

The repository contains 298 sources across C and assembly, each annotated with real names, structured record fields, and detailed comments explaining compiler behavior and quirks. A custom build system called Exhume verifies every function, relocation, and symbol against the original binaries. The final gate compiles all sources in a DOS emulator (DOSBox-X) and confirms the new BCC.EXE matches Borland's bit for bit.

A modding build permits source changes while preserving compatibility, validated by 1836 compiles of example programs and vintage test suites, achieving 83% coverage of compiler code paths. Scripts and documentation are MIT-licensed; recovered sources are provided for study and preservation under a no-rights-claimed notice. Setup requires original Borland install media from WinWorld and a Python environment.

Source: Hacker News · Summarized by HeadlinesBriefing