"Programs are translated by other programs into different forms, from high-level C source code down to low-level machine instructions."
— CS:APP (Computer Systems: A Programmer's Perspective), Section 1.2

⚙️ Overview

This interactive tool traces the 5-phase compilation process of the classic hello.c program, showing the step-by-step conversion of C source code into executable machine binaries.


🔬 The 5-Phase Translation Pipeline

  1. Phase 01 · Source Code (hello.c): High-level C source code represented as pure ASCII text.
  2. Phase 02 · Preprocessor (hello.i): Strips human comments and inlines system header declarations (<stdio.h>) into a modified ASCII text stream.
  3. Phase 03 · Compiler (hello.s): Parses C syntax into assembly language mnemonics (subq, movl, call puts, ret).
  4. Phase 04 · Assembler (hello.o): Encodes assembly mnemonics into raw binary machine opcode bytes (ELF relocatable object format).
  5. Phase 05 · Linker (hello): Resolves external symbol references by merging your program binary with the runtime library (printf.o), producing a standalone executable ready for RAM execution.

🕹️ Interactive Features

  • Live Custom Input: Edit the string payload inside printf("...") directly and observe how your custom characters propagate across all 5 stages in real time.

📚 Academic Reference

  • Book: Computer Systems: A Programmer's Perspective (3rd Edition)
  • Chapter: Chapter 1: A Tour of Computer Systems
  • Section: 1.2 Programs Are Translated by Other Programs into Different Forms

💡 Want to run these offline or download the complete collection?

Get lifetime offline access to every interactive program released under this itch.io account.

One-Click Full Download: Download the entire archive as an all-in-one offline package anytime—runs 100% locally in any browser with zero dependencies, zero install, and no internet required.

Continuously Updated with Lifetime Free Access: Whenever any new program or tool is added to the catalog, the latest builds are automatically available for download at no extra cost.

(One-time purchase · Full batch download · Free lifetime updates)

👉 Get Lifetime Access on Whop

https://whop.com/jscode/itch-access/

Leave a comment

Log in with itch.io to leave a comment.