Borland's DOS compilers, rebuilt from their own binaries
Borland's DOS compilers have been rebuilt from their own binary files, through a dedicated repository. This project meticulously recovers Borland's compiler source code from published executables, ensuring each byte of the recovered C and assembly code perfectly aligns with the original Borland toolchain. To enhance readability, the project incorporates real names, named record fields, file comments, and compiler notes.
Additional Borland and Turbo versions are planned to be added as separate directories. The project relies on the original Borland programs, not included in this repository, and provides a comprehensive guide in docs/SETUP.md. The final step involves compiling all 298 sources in DOS, cross-checking each function with the original byte for byte, verifying relocations, names, and linking a new BCC.EXE identical to Borland's.
Modifying the compiler is achieved through the modding build, which links the same sources using TLINK's layout, allowing for potential code and data reorganization. A tracing emulator demonstrates the compiler's address usage and code execution, covering 83% of cases (bc20/bcc/docs/COVERAGE.md). For further customization and understanding, refer to bc20/bcc/docs/MODDING.md and docs/HOW-IT-WORKS.md.
Corrections, enhancements, and contributions are welcome, detailed in CONTRIBUTING.md. The project's scripts and documentation are licensed under MIT (LICENSE), while the recovered sources, derived from Borland's copyrighted programs, are provided for study and preservation purposes only, with no rights claimed.
Rewritten by urgent.news; may contain errors — check the original.
Source: github.com