Borland's DOS compilers, rebuilt from their own binaries
First reported by Github ·
Classic Borland compiler source code is now fully recoverable and modifiable, allowing exact byte-for-byte binary reconstruction for retrocomputing projects.
Developer abedegno has published a GitHub repository named borland-reborn, designed to recover the source code of classic Borland DOS compilers so they rebuild original binaries byte for byte. The initial release focuses on Borland C++ 2.0, released in 1991, and includes 22 executables such as BCC.EXE, CPP, TLINK, TASM, TLIB, and MAKE, along with protected-mode tools and run-time library modules. The repository contains recovered C and assembly sources featuring real names, named record fields, comments on every file, and notes on compiler behavior. Users can set up the project by cloning the repository, downloading original Borland C++ 2.0 and Turbo C 2.01 archives from external sources like WinWorld, configuring a Python virtual environment with required tools and a DOS emulator, and running verification scripts. A build gate compiles 298 sources in DOS, checks functions byte for byte, verifies relocations, and links a new BCC.EXE identical to the original. The project also supports a modding build that allows functions to grow or shrink, accommodating new data and source files. Future updates plan to add more Borland and Turbo versions under top-level directories sharing the scripts and Exhume build tools. The recovered sources are derived from copyrighted programs provided strictly for study and preservation with no rights claimed, while project scripts and documentation are licensed under the MIT license.
The publication of the borland-reborn repository highlights the growing sophistication of matching-decompilation techniques for legacy x86-16 software preservation. By reverse-engineering proprietary developer tools down to the exact byte, the project establishes a rigorous framework for documenting how vintage compilers functioned internally. This approach transforms closed-source artifacts into readable, annotated codebases complete with original function names and structural notes.
Such open-source reconstruction efforts directly benefit retrocomputing enthusiasts and historians who rely on period-accurate toolchains for legacy maintenance. Future expansions to include additional Turbo and Borland versions will create a comprehensive archive of early DOS development environments. Researchers can utilize the modding build capabilities to experiment with compiler modifications without breaking binary compatibility constraints.
AI-written summary. May contain errors.