hn.today

Borland's DOS compilers, rebuilt from their own binaries

github.com208 points81 comments
Screenshot of Borland's DOS compilers, rebuilt from their own binaries

Borland Reborn is a software-preservation and reverse-engineering project that reconstructs the source code of Borland’s DOS compilers from their original executable files. Its first release focuses on Borland C++ 2.0 from 1991, covering 22 programs, including the BCC.EXE compiler, linker, assembler, libraries, and utilities, as well as runtime-library modules. The recovered C and assembly code is made more understandable with restored names, descriptive record fields, comments, and explanations of compiler behavior and defects. The project’s central achievement is that the recovered programs can be rebuilt with Borland’s original tools into binaries that match the originals byte for byte.

The build process checks all 298 compiler source files against the original at the function level, verifies relocations and names, and links an identical BCC.EXE. A separate modifiable build permits code and data changes; it is tested against the original compiler using 1,836 compilations, with outputs compared across varied layouts and test programs. Emulator tracing measures which code and data the tests exercise, with documented coverage of 83 percent. Rebuilding requires users to obtain the original Borland software, install supporting tools, and follow the setup guide. The project welcomes corrections to its documentation and findings; its scripts and documentation use an MIT license, while the recovered software remains Borland-derived and is offered for study and preservation without a claim of ownership.

Read on github.com81 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.