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

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

263 points by frostbyte7 4 days ago github.com 105 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (7)

  1. 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.
    Replies (3)
    1. The code is quite readable and well documented. Look at, for example, the register allocator. It’s quite readable what’s going on, and the comment at the top of each file describes the general algorithm.
      Replies (1)
      1. Maybe some of it's readable, but certainly not all: https://news.ycombinator.com/item?id=50688350
    2. 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.
      Replies (1)
      1. Not really. The source it produces is essentially ASM written in C, not human authored code.
    3. Hmmm...sure looks mighty readable to me. Not sure exactly what your complaint about the codebase could be?

      My problem seems to be stranger...is anyone else having the Github Unicorn error message popping up everywhere, or is it just me? I am unable to view more than 2 or 3 C files before my review is held up by these rather strange errors.

      Its been a little while since I've scanned thru Github...maybe this is a common problem now?

      Replies (1)
      1. It’s because you’re not logged in.