# newminhh/docs architecture

> Architecture diagram of the GitHub repository newminhh/docs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/newminhh/docs
- Repository: https://github.com/newminhh/docs

## Overview

The README describes newminhh as an i386 compatibility system for x32-only Linux, with two execution paths: offline patching and in-process dynamic translation, both supported by a shared ABI runtime. This graph reflects those documented capabilities and relationships; the supplied repository tree contains documentation only, with no implementation excerpts to verify further details.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User entrypoints"]
  node_cli["Unified CLI"]
  node_runner["DBT runner"]
end

subgraph group_patch["Static and hybrid patching"]
  node_patcher["Binary patcher"]
  node_analysis["Binary analysis"]
  node_rewriter["ELF rewriter"]
  node_elfbuild["x32 ELF builder"]
end

subgraph group_runtime["Runtime translation"]
  node_loader["i386 ELF loader"]
  node_translator["Block translator"]
  node_branchcache["Branch cache"]
  node_nxguard["NX-guard dispatcher"]
end

subgraph group_abi["Shared ABI support"]
  node_compat["ABI runtime"]
  node_bridges["Call bridges"]
  node_syscalls["Syscall translator"]
  node_repacker["Struct repacker"]
  node_libraryrouter["Library router"]
  node_common["Shared ABI definitions"]
end

node_user(("Operator"))
node_x32system["x32 system libraries"]
node_kernel["Linux kernel"]
node_analysis_tools["Analysis tools"]

node_user -->|"invokes"| node_cli
node_cli -->|"dispatches patching"| node_patcher
node_cli -->|"dispatches execution"| node_runner
node_patcher -->|"analyzes binaries"| node_analysis
node_analysis -->|"uses tools"| node_analysis_tools
node_patcher -->|"rewrites binaries"| node_rewriter
node_patcher -->|"builds ELF"| node_elfbuild
node_rewriter -->|"links runtime"| node_compat
node_patcher -->|"falls back"| node_runner
node_runner -->|"loads binaries"| node_loader
node_loader -->|"translates blocks"| node_translator
node_translator -->|"caches branches"| node_branchcache
node_loader -->|"installs guard"| node_nxguard
node_compat -->|"provides"| node_bridges
node_compat -->|"provides"| node_syscalls
node_compat -->|"provides"| node_repacker
node_compat -->|"provides"| node_libraryrouter
node_compat -->|"uses shared ABI"| node_common
node_compat -->|"wraps libraries"| node_x32system
node_syscalls -->|"translates calls"| node_kernel

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_runner toneBlue
class node_patcher,node_analysis,node_rewriter,node_elfbuild toneAmber
class node_loader,node_translator,node_branchcache,node_nxguard toneMint
class node_compat,node_bridges,node_syscalls,node_repacker,node_libraryrouter,node_common toneRose
class node_user,node_x32system,node_kernel,node_analysis_tools toneIndigo
```

## Components

### User entrypoints

- **Unified CLI**
- **DBT runner**

### Static and hybrid patching

- **Binary patcher**
- **Binary analysis**
- **ELF rewriter**
- **x32 ELF builder**

### Runtime translation

- **i386 ELF loader**
- **Block translator**
- **Branch cache**
- **NX-guard dispatcher**

### Shared ABI support

- **ABI runtime**
- **Call bridges**
- **Syscall translator**
- **Struct repacker**
- **Library router**
- **Shared ABI definitions**

### Other components

- **Operator**
- **x32 system libraries**
- **Linux kernel**
- **Analysis tools**

## Connections

- Operator → Unified CLI: invokes (evidence: `README.md`)
- Unified CLI → Binary patcher: dispatches patching (evidence: `README.md`)
- Unified CLI → DBT runner: dispatches execution (evidence: `README.md`)
- Binary patcher → Binary analysis: analyzes binaries (evidence: `README.md`)
- Binary analysis → Analysis tools: uses tools (evidence: `README.md`)
- Binary patcher → ELF rewriter: rewrites binaries (evidence: `README.md`)
- Binary patcher → x32 ELF builder: builds ELF (evidence: `README.md`)
- ELF rewriter → ABI runtime: links runtime (evidence: `README.md`)
- Binary patcher → DBT runner: falls back (evidence: `README.md`)
- DBT runner → i386 ELF loader: loads binaries (evidence: `README.md`)
- i386 ELF loader → Block translator: translates blocks (evidence: `README.md`)
- Block translator → Branch cache: caches branches (evidence: `README.md`)
- i386 ELF loader → NX-guard dispatcher: installs guard (evidence: `README.md`)
- ABI runtime → Call bridges: provides (evidence: `README.md`)
- ABI runtime → Syscall translator: provides (evidence: `README.md`)
- ABI runtime → Struct repacker: provides (evidence: `README.md`)
- ABI runtime → Library router: provides (evidence: `README.md`)
- ABI runtime → Shared ABI definitions: uses shared ABI (evidence: `README.md`)
- ABI runtime → x32 system libraries: wraps libraries (evidence: `README.md`)
- Syscall translator → Linux kernel: translates calls (evidence: `README.md`)
