NEWSFEVER
Technology worth discussing24 / 7 · RU + EN
Back to feedDevelopment & Open Source

Borland C++ 2.0 code reconstructed for byte-identical builds

The borland-reborn project reports that its reconstructed compiler and preprocessor code produces executables identical to the original Borland C++ 2.0 releases.

Published: 14 Nov 2026, 15:00 UTC
Two blocks with identical binary patterns are connected through source-code sheets arranged between them.
Conceptual illustration of code reconstruction and a byte-identical compiler rebuild.

The borland-reborn project has reconstructed the code of the 1991 DOS compiler Borland C++ 2.0 from its executable. According to the project, building it with Borland’s original tools produces a BCC.EXE that matches the released program byte for byte. The standalone CPP.EXE preprocessor has also reached that milestone. Borland C++ 2.0’s historical source code was never published.

The reconstructed BCC.EXE code comprises 298 files across 15 subsystem directories: 265 C files and 33 TASM assembly modules. The project preserved the original division between compiled C and handwritten assembly. It used the Exhume decompilation toolkit, checking functions, relocations and symbols before comparing the complete executable against the original using SHA-256.

The work also exposed quirks and bugs in the original program. Confirmed findings include strrchr reading the byte before an empty string and compilation failing for a bit-field post-increment through a far pointer in the compact, large and huge memory models. Those behaviors remain in the reconstructed code to preserve the exact match, while comments and documentation explain the findings.

The repository does not include the original Borland programs; rebuilding requires separately obtained Borland C++ 2.0 and Turbo C 2.01 distributions. The project’s own scripts and documentation use the MIT license. Its reconstructed sources are published for study and preservation, with no rights claimed over code derived from copyrighted Borland programs.

Original source: habr.com ↗

Comments on source platforms

Rank is the maximum of the latest discussion counts. These are source metrics.

Хабр