<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/borland-s-dos-compilers-rebuilt-from-their-own-binaries-dqpdgield" -->

---
title: Borland's DOS compilers, rebuilt from their own binaries
description: The repo recovers source for Borland's DOS compilers that rebuilds the original binaries byte for byte. The Borland C++ 2.0 directory has 22 executables,...
canonical: https://daily.dev/posts/borland-s-dos-compilers-rebuilt-from-their-own-binaries-dqpdgield
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Borland's DOS compilers, rebuilt from their own binaries | daily.dev
og:description: The repo recovers source for Borland's DOS compilers that rebuilds the original binaries byte for byte. The Borland C++ 2.0 directory has 22 executables,...
og:url: https://daily.dev/posts/borland-s-dos-compilers-rebuilt-from-their-own-binaries-dqpdgield
og:image: https://api.daily.dev/og/posts/dqpdgiELD.png
og:image:alt: Borland's DOS compilers, rebuilt from their own binaries
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Borland's DOS compilers, rebuilt from their own binaries

**[Hacker News](https://daily.dev/sources/hn)** · 3 min read · 13 upvotes · 0 comments

## Summary

The repo recovers source for Borland's DOS compilers that rebuilds the original binaries byte for byte. The Borland C++ 2.0 directory has 22 executables, including BCC.EXE, TLINK and TASM, that each rebuild byte-identical. Building it compiles 298 sources in DOS, checks every function against the original, and links a BCC.EXE identical to Borland's. A separate modding build lets functions grow or shrink and new files be added. It was checked with 1836 compiles on both compilers, and the tests cover 83% of the compiler's code. You supply the original Borland programs yourself.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/abedegno/borland-reborn>

## Questions this post answers

### Is there a way to rebuild Borland C++ 2.0's BCC.EXE from source and get a byte-identical binary?

Yes. The borland-reborn project recovers C and assembly source from Borland's published executables so it rebuilds all 22 programs byte for byte with the original toolchain. Its build compiles 298 sources in DOS, checks each function against the original, verifies relocations and names, and links a BCC.EXE identical to Borland's. You must supply the original Borland programs yourself.

_Developers digging into compiler internals and software preservation follow projects like this on daily.dev._

### Can I modify the recovered Borland C++ 2.0 compiler, such as growing functions or adding source files?

Yes, through a separate modding build. It links the same sources with a layout TLINK chooses, so any function may grow or shrink, new data can go between data items, and new source files can be added. It was validated with 1836 compiles on both compilers, and the tests exercise 83% of the compiler's code.

_If you're hacking on legacy toolchains, daily.dev surfaces similar reverse-engineering and preservation work._

## Community take

How the wider developer community reacted, aggregated from 1 discussion and 75 comments across hackernews (as of 2026-11-29).

**TL;DR:** Nostalgia for Borland's old tools runs high, but much of the discussion is skeptical that AI-driven 'rebuilding' produces genuinely readable or trustworthy source rather than disguised decompiler output, with a side debate about AI-written hype-y titles.

**Sentiment:** 25% positive · 35% mixed · 40% skeptical

**The case for**

- Some find the reconstructed register allocator and documentation genuinely readable and useful.
- Being able to batch-test many function variants from a script without needing DOS is seen as a practical win.
- It's viewed as useful groundwork for decompiling/porting other binaries built with the same compilers.
- Many commenters share fond nostalgia for Borland's IDEs and compilers from the 80s/90s.

**The pushback**

- Several argue the output is 'ASM written in C' rather than human-authored, readable code despite claims otherwise.
- Some call it AI slop that could mislead people into thinking it reflects the actual original source.
- There's criticism that the title's use of words like 'rebuilt' and 'own' obscures that this was AI reverse-engineering, which feels disingenuous.
- A few question the real-world value of the effort once the AI tokens/money are spent, beyond personal fun.

**By community**

- hackernews (mixed): Nostalgia for Borland tooling mixes with skepticism about whether AI-reconstructed source is genuinely readable or just disguised decompiler output, plus griping over the AI-flavored title phrasing.

**Hottest debate:** Whether the AI-reconstructed C source is genuinely readable, maintainable code or just obfuscated assembly dressed up as C.

**Open questions**

- Would the reconstruction approach work as well for other historical compilers (e.g., Digital Research, Microsoft C 5.1)?
- How much of the original codebase was actually assembler versus C, and does the output misrepresent that?

**Highlights**

> Not really. The source it produces is essentially ASM written in C, not human authored code.
> — [owlstuffing on hackernews](https://news.ycombinator.com/item?id=50689478)

> it has exactly that step, described in HOW_IT_WORKS: https://github.com/abedegno/borland-reborn/blob/main/docs/HO...     6. Make it readable     With every byte proved, the source was rewritten for people,     one step at a time, with the full check after each step (the original has more detail). Whether this step succeeded is a different question.
> — [bazzargh on hackernews · 1 comments](https://news.ycombinator.com/item?id=50689162)

> Is it even better than raw decompiler output? Frankly, I have been saying this forever but always criticized: getting C output that compiles has always been the easy part, getting stuff that is readable is actually where the problem is, and franky these "AI decompilers" are hardly an improvement so far. But people act as if "well we got something that compiles down to the same binary, this must be the actual C source!" Welp. It couldn't be more different than the original source. In fact, it's probably even distracting if your goal is to reconstruct the original source. This is just AI slop in a form that you can't even easily recognize. Not to mention the licensing aspect of all of this. One should be wary of Watcom because of its terrible license, even though it is technically Open Source.If as a consequence Watcom is kind of a minefield, I don't even know how to start describing this. The trenches at Verdun?
> — [AshamedCaptain on hackernews · 1 comments](https://news.ycombinator.com/item?id=50688420)

> This is very disingenuous of them. I was thinking what does "recovered" meant, did they dig up an old pile of floppy disk? Given Borland still exist as Embarcadero. And what does "rebuilt" meant, Reverse-engineered and reconstructed by AI could have been the first sentence.
> — [ksec on hackernews](https://news.ycombinator.com/item?id=50690259)

> 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's impressive that it works, but once the tokens are spent, what does anyone get out of it? I guess I wonder if AI projects are becoming a bit of a "social proof of money spent".
> — [humblefly on hackernews · 6 comments](https://news.ycombinator.com/item?id=50688350)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=50687448) · 170 points · 75 comments

## Similar posts on daily.dev

- [Borland C\+\+ 2.0 Compiler Source Reconstructed](https://daily.dev/posts/borland-c-2-0-compiler-source-reconstructed-mf4byqk7e) · Hackaday · 0 upvotes · 0 comments
- [Turbo Pascal Compiler Written in Turbo Pascal](https://daily.dev/posts/turbo-pascal-compiler-written-in-turbo-pascal-kqajtofnn) · Hacker News · 1 upvotes · 0 comments
- [compiler](https://daily.dev/posts/compiler-4h8jmmzmz) · Lobsters · 1 upvotes · 0 comments

---

Tags: [#compiler](https://daily.dev/tags/compiler), [#assembly](https://daily.dev/tags/assembly)

[View this post on daily.dev](https://daily.dev/posts/borland-s-dos-compilers-rebuilt-from-their-own-binaries-dqpdgield)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Borland's DOS compilers, rebuilt from their own binaries","url":"https://daily.dev/posts/borland-s-dos-compilers-rebuilt-from-their-own-binaries-dqpdgield","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/borland-s-dos-compilers-rebuilt-from-their-own-binaries-dqpdgield"},"datePublished":"2026-11-29T15:55:27.453Z","dateModified":"2026-11-29T21:41:31.794Z","description":"The repo recovers source for Borland's DOS compilers that rebuilds the original binaries byte for byte. The Borland C++ 2.0 directory has 22 executables,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/971bc0e32e3591e962ba438e12d3c1fd?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/971bc0e32e3591e962ba438e12d3c1fd?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/borland-s-dos-compilers-rebuilt-from-their-own-binaries-dqpdgield","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":12},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"compiler,assembly","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Borland's DOS compilers, rebuilt from their own binaries"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/borland-s-dos-compilers-rebuilt-from-their-own-binaries-dqpdgield#faq","mainEntity":[{"@type":"Question","name":"Is there a way to rebuild Borland C++ 2.0's BCC.EXE from source and get a byte-identical binary?","acceptedAnswer":{"@type":"Answer","text":"Yes. The borland-reborn project recovers C and assembly source from Borland's published executables so it rebuilds all 22 programs byte for byte with the original toolchain. Its build compiles 298 sources in DOS, checks each function against the original, verifies relocations and names, and links a BCC.EXE identical to Borland's. You must supply the original Borland programs yourself. Developers digging into compiler internals and software preservation follow projects like this on daily.dev."}},{"@type":"Question","name":"Can I modify the recovered Borland C++ 2.0 compiler, such as growing functions or adding source files?","acceptedAnswer":{"@type":"Answer","text":"Yes, through a separate modding build. It links the same sources with a layout TLINK chooses, so any function may grow or shrink, new data can go between data items, and new source files can be added. It was validated with 1836 compiles on both compilers, and the tests exercise 83% of the compiler's code. If you're hacking on legacy toolchains, daily.dev surfaces similar reverse-engineering and preservation work."}}]}
```

