logoalt Hacker News

Borland's DOS compilers, rebuilt from their own binaries

85 points • by frostbyte7 • today at 12:51 PM • 22 comments • view on HN

Comments

noahbp • today at 2:37 PM

This is going to be very helpful for any project to decompile binaries that were compiled with these compilers.

I'm working on something similar though shot of a full decompilation for Microsoft Visual C++, to trace and report the knobs to tune in the internal register allocation algorithm (among other things) to make reversing and decompiling binaries that were compiled with MSVC a much easier task: https://github.com/NoahBPeterson/c2scope

➕ show 1 reply
Waraqa • today at 2:21 PM

To clarify, 'rebuilt' in the title means reverse-engineered and reconstructed by AI.

saturn_vk • today at 3:06 PM

What’s up with ai titles of the format:

Short description, adjective more description

➕ show 2 replies
codazoda • today at 1:58 PM

I've been building a web based editor inspired by the Borland Turbo Pascal/Basic editors. It uses an optional GitHub token to save files directly to your repo. You can try it here:

https://codazoda.github.io/blue

owlstuffing • today at 3:11 PM

Impressive. But the critical missing feature is a step in the process that transforms the resulting source into readable source, using transforms that are provably identical in behavior.

➕ show 2 replies
abecedarius • today at 2:40 PM

I'd love to run this for the nostalgia value, and I did buy the original software but left it behind long ago. Oh, well. ("You need the original Borland programs" -- very reasonably.)

➕ show 1 reply
Quitschquat • today at 3:14 PM

Claude usually gives me some bullshit nannying when I try to reverse engineer stuff.

➕ show 2 replies
humblefly • today at 2:41 PM

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".
➕ show 5 replies
squarefoot • today at 2:11 PM

Since we live in the age of vibe recompilation, reverse engineering etc where everything seems possible, let me drop a wish for a "Turbo Zig" CLI IDE + compiler that covers most well known microcontrollers.

smallerfish • today at 2:24 PM

Watch the use of the word "own" - it's an AI giveaway.

Tenrion618 • today at 2:35 PM

[dead]

Skyfall106 • today at 2:24 PM

[dead]

infralog77 • today at 1:06 PM

[dead]

supersimpleguy • today at 2:30 PM

[dead]