← Sun, Nov 29 digest

Borland's DOS compilers, rebuilt from their own binaries

read article ↗ hn thread ↗

The borland-reborn GitHub repository recovers the source code of classic Borland C++ 2.0 compilers from published executables, enabling byte-identical rebuilds and modding.

summary is enough The repository provides a fascinating look at AI-assisted binary recovery, though technical readers will find the resulting code resembles C-styled assembly.

summary

The borland-reborn project reconstructs the source code of Borland C++ 2.0 from its original DOS executables using automated tools and a Python-driven build pipeline. By matching functions and verifying behavior in DOSBox-X, the repository achieves byte-identical compilation alongside a modding build mode. While the project successfully replicates original compiler behavior, commenters heavily debate whether AI-generated decompiled code offers genuine utility or remains a technical novelty.

key points

  1. The project requires original binaries like Borland C++ 2.0 to run the automated recovery and verification pipeline.
  2. A build gate executes thousands of tests inside DOSBox-X to verify that every function and relocation matches the original binaries byte for byte.
  3. A modding build mode permits code and data modifications while ensuring compatibility across extensive test suites.

who should read it

Retrocomputing enthusiasts and reverse engineers interested in binary reconstruction and early DOS toolchains.

discussion mixed

consensus

Commenters appreciate the nostalgia and technical novelty of reviving 90s DOS toolchains, but actively debate the practical maintainability of AI-generated C code that reads like raw assembly.

pushback

A vocal minority dismisses the repository as low-effort AI output that lacks the educational depth of traditional manual reverse engineering.

best comment by humblefly ↗

Sincere question: why? Source like this is a notch better than raw decompiler output in the pre-AI era, but what's the expectation / use case?

if((ES_B(_BX,MEMB_FLAGS)&3)==3) { _DI=ES_W(_BX,MEMB_VALUE); _ES=SYMBOL_POOL_SEG;ES_W(0,SYM_TYPE)=base; if(ES_W(_DI,SYM_FUNC_KIND)==2) { while(!TYPES_COMPATIBLE(TYPE_W(SYM_W(_DI,SYM_TYPE),TYPE_TARGET),TYPE_W(base,TYPE_TARGET),0)) _DI=SYM_W(_DI,SYM_NEXT_OVERLOAD); } else { while(!SAME_SIGNATURE(SYM_W(_DI,SYM_TYPE),base)) _DI=SYM_W(_DI,SYM_NEXT_OVERLOAD); } if(_DI==0) {_DI=_DI;goto next_param;}

I grant you that it's a thing you can do with agents, and …

It surfaces the central debate over the utility of AI-assisted reverse engineering by analyzing a snippet of the generated C code.

Generated by an LLM from the article and thread. Check the sources before relying on it.