<!-- Canonical page: https://reversedwithai.com/p/templeos-v5-03-83da1f31 -->
Canonical page: https://reversedwithai.com/p/templeos-v5-03-83da1f31

# Statically recompiled TempleOS V5.03 into a native program with Claude

> TempleOS running as a native application on Windows and Linux without emulation.

This project translates TempleOS V5.03 machine code into C, allowing the operating system to run as a native program on Windows and Linux without an emulator or virtual machine.

## Key facts

- Target: TempleOS V5.03
- Category: Legacy software
- Platform: Windows, Linux
- Models: Claude Opus 5.5
- Tools: pcrecomp, MSVC, gcc, SDL2, capstone, CMake
- 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 project statically recompiles TempleOS V5.03, a 64-bit operating system originally designed by Terry A. Davis, to run as a native program on Windows and Linux. The author reports that the system operates without an emulator or virtual machine. The implementation involves lifting the kernel to C using pcrecomp, modeling hardware components such as the timer, interrupt controllers, and VGA in C, and capturing code generated at runtime by the HolyC compiler. The author documents that the HolyC compiler and subsequent compiler output are captured, lifted, and verified byte for byte. The project supports builds on Windows using MSVC and Linux using gcc, while macOS support remains unfinished. The author credits Claude Opus 5.5 as a co-author for contributions across the repository, including the implementation of installer workflows and logic for handling lifted code blocks. The source code is available at [https://raw.githubusercontent.com/sp00nznet/templeos/HEAD/README.md](https://raw.githubusercontent.com/sp00nznet/templeos/HEAD/README.md).

## Reproduce it

Requires TempleOS V5.03 ISO, Python 3.10+, capstone, CMake, and a C compiler. Run setup scripts or use the provided tools to lift the kernel, build the capture cache, and execute the binary.

## Sources

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

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). Statically recompiled TempleOS V5.03 into a native program with Claude. Reversed with AI. https://reversedwithai.com/p/templeos-v5-03-83da1f31
