A new project on GitHub called Borland Reborn has successfully reverse-engineered the source code of classic Borland compilers by analyzing their published executables. The effort focuses on recovering and documenting compilers that were central to DOS-era software development.

The project begins with Borland C++ 2.0 from 1991, recovering source code for 22 executables including the core compiler (BCC.EXE), preprocessor, linker (TLINK), assembler (TASM), library manager (TLIB), and make utility, along with protected-mode variants and runtime library modules. According to the project documentation, every recovered program rebuilds byte-for-byte identically with the original Borland toolchain.
The reconstruction process involves identifying the exact compiler version and compilation flags, matching individual functions from the executable back to source, verifying matches through byte-for-byte comparison, and then performing a readability pass that adds real variable names, named record fields, comments, and annotations explaining compiler behavior and known issues. The project uses a DOS emulator (dosbox-x) and custom tools called Exhume to execute and verify the rebuilds.
Users can modify the reconstructed compiler using what the project calls a “modding build.” This version allows functions to grow or shrink, new data to be inserted between existing data items, and new source files to be added. The modified compiler is validated by running 1,836 test compiles using both the original Borland compiler and historical alternatives like GCC and cfront, comparing all outputs. Code coverage analysis shows 83% of the compiler’s code is exercised during testing.
The project is structured to eventually include other Borland and Turbo compiler versions beyond C++ 2.0, with shared build scripts and tools. Users must supply their own original Borland executables (not included in the repository). The recovered sources are provided for study and preservation under a notice indicating no rights are claimed, while the project’s own scripts and documentation are MIT-licensed. The team welcomes corrections to names, comments, and technical findings.
Key facts
- Borland C++ 2.0 (1991) source code has been recovered from its executable and achieves byte-for-byte identical rebuilds
- The project recovers 22 executables including the compiler, linker, assembler, and utilities
- Recovered code is validated through 1,836 test compiles against original Borland, GCC, and cfront compilers
- 83% of the compiler code is covered by testing according to the project documentation
- The project’s scripts and documentation are MIT-licensed; recovered sources are provided for study without rights claimed
