<!-- Canonical page: https://reversedwithai.com/p/borland-c-5-5-1-a4c270ae -->
Canonical page: https://reversedwithai.com/p/borland-c-5-5-1-a4c270ae

# Static recompilation of Borland C++ 5.5.1 into native C with Claude

> A static recompilation project for Borland C++ 5.5.1 command-line tools.

This project performs static recompilation of the Borland C++ 5.5.1 compiler and linker into native C code, achieving byte-identical output for six test programs using the pcrecomp toolchain.

## Key facts

- Target: Borland C++ 5.5.1
- Category: Legacy software
- Platform: Windows
- Models: Claude Opus 5.5
- Tools: pcrecomp, MSVC, pefile, capstone
- Outcome: Works
- Checks: Source available: not reported; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: sp00nznet
- Added: 2026-11-30
- Updated: 2026-11-30
- Sources reviewed: 2026-11-30 (automated reviewer)

## What was done

The bcc55-recomp project performs static recompilation of the Borland C++ 5.5.1 Free Command-Line Tools, specifically the bcc32.exe compiler and ilink32.exe linker. The process lifts these Win32 executables into native C code, which is then compiled with MSVC to run on the pcrecomp native32 host. This implementation preserves Borland's original run-time library, including startup code, threadvars, exception handling, and hand-written assembly in the preprocessor. The author reports that the recompiled tools are tested against a corpus of six programs covering C, x87 floating point, templates, the bundled STL, C++ and structured exceptions, the multithreaded RTL, and a Win32 GUI program. According to the README, the recompiled tools produce byte-identical output compared to the original tools, with clock stamps masked. The project documentation is available at [https://raw.githubusercontent.com/sp00nznet/bcc55-recomp/HEAD/README.md](https://raw.githubusercontent.com/sp00nznet/bcc55-recomp/HEAD/README.md). Commit logs indicate that Claude Opus 5.5 co-authored the development of the repository. Current limitations include the lack of Linux or macOS support and the fact that bcc32 without the -c flag still invokes the original ilink32.exe.

## Human work and limitations

The project uses a conformance harness to verify that the recompiled tools match the original Borland binaries byte-for-byte across six test cases.

## Reproduce it

Download the repository, run Setup.cmd on Windows, and use the provided BCC55 Recomp Prompt to execute the tools.

## Sources

- [Repository](https://github.com/sp00nznet/bcc55-recomp)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: sp00nznet (2026). Static recompilation of Borland C++ 5.5.1 into native C with Claude. Reversed with AI. https://reversedwithai.com/p/borland-c-5-5-1-a4c270ae
