Borland's DOS compilers, rebuilt from their own binaries (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
I'm quite far with Microsoft C 5.1, I wonder how much similarity there is, if any.
Replies (2)
https://github.com/microsoft/MS-DOS/tree/main/v4.0/src/TOOLS
Not that I have found anything that I felt like I wanted to change. Maybe bring it up to full ANSI C89? It is already quite close though. Think there was some minor thing I ran into that was missing, but usually it just works to treat it as C89, and LLMs seem to have no problem with it either.
Replies (1)
The copyright strings have the year 1988, while 5.0 has 1987.
The runtime library mostly fits the library shipped with 5.1, but a couple of functions fit 5.0 instead, and a couple others don't fit either versions.
Replies (1)
Replies (1)
Our main goal from reverse engineering the compiler is to understand how it works and to allow us to decompile other stuff better. That means that for the most part, binary identity of the compiler's decompilation isn't required - we can always use the original to verify the output is identical.
So at the moment, behavioral identity is good enough.
Once we have the entire compiler understood, we can try to tweak the reconstructed code to get a binary match, or alternatively, prove it couldn't have been compiled with itself.
Replies (1)
Continue this thread (1 replies) →