Skip to content

Korum: Create a detailed architecture diagram of the code gen#2

Open
korum-app[bot] wants to merge 1 commit intomainfrom
korum/create-a-detailed-architecture-diagram-o
Open

Korum: Create a detailed architecture diagram of the code gen#2
korum-app[bot] wants to merge 1 commit intomainfrom
korum/create-a-detailed-architecture-diagram-o

Conversation

@korum-app
Copy link
Copy Markdown

@korum-app korum-app bot commented Mar 8, 2026

Korum Task

  • Task ID: k97a2avxvj3w9v314k0hp0r3v582hz3h
  • Revision: 1

Description

Create a detailed architecture diagram of the code gen

Summary

I have created a detailed architecture diagram and documentation for the code generation pipeline in the Tiny compiler.

The documentation is located in /home/user/workspace/ARCHITECTURE.md and includes:

  • A Mermaid diagram illustrating the end-to-end pipeline from source code to executable binary.
  • Detailed descriptions of key components:
    • GenContext: The core engine for ARM64 assembly generation, handling stack mapping, Phi resolution, and instruction emission.
    • Register Allocation: How virtual IR values are mapped to physical ARM64 registers.
    • Binary Compilation: The final assembly and linking stages using system tools (as, ld, gcc).
  • An overview of the data flow between the IR, register allocator, and the code generator.

This architecture documentation provides a clear view of how the Tiny compiler transforms its intermediate representation into functional machine code for both Apple and Linux ARM64 platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants