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

> Source: <https://reversedwithai.com/p/templeos-v5-03-83da1f31>
> Published: 2026-11-30 22:19:36+00:00

**Key takeaway:** Lifting TempleOS V5.03's kernel to C with pcrecomp, modeling the timer, interrupt controllers and VGA in C, and capturing HolyC compiler output for byte-for-byte verification lets the OS run natively on Windows (MSVC) and Linux (gcc) without an emulator.

## What was done

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.

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).

## Try 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.

## Discussion

[Your library](https://reversedwithai.com/library)

## Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. An automated check matched its claims against them on 30 Nov 2026. The figures are the author's. [How entries are checked.](https://reversedwithai.com/about#method) [Something wrong? Tell me.](https://reversedwithai.com/policy#takedown)
