Unofficial Hacker News companion — get notified on comment replies, and more.

Borland's DOS compilers, rebuilt from their own binaries (opens external site)

260 points by frostbyte7 2 days ago | github.com | 95 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (4)

  1. Oh, that's basically assembler
    Replies (2)
    1. I wonder how much of the original source was assembler and this is trying to turn it into the C code that it never was.
      Replies (1)
      1. I've spent some time on the problem of deriving equivalent C to codebases that were not originally C and it is quite challenging. For documentation purposes and future maintainability I think it's useful, but decomposition is an active area of research with a lot of open problems.
    2. Turbo C actually let you use _BX and _ES as plain variables. Borland's own compiler would take that code without blinking.