# tifelabs/system_prog architecture

> Architecture diagram of the GitHub repository tifelabs/system_prog, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tifelabs/system_prog
- Repository: https://github.com/tifelabs/system_prog

## Overview

##### Project type and purpose
- This repository is a personal “Systems-Programming Study” workspace. It groups together:
- BASICS: Fundamental theory (e.g., boolean logic)
- EXPLOIT: Hands-on exercises from “Hacking: The Art of Exploitation”
- K & R: Code samples and exercises from K&R’s “The C Programming Language” textbook
- OS: Minimal Operating-Systems practice code
- It is not an application or library you ship but rather an educational collection of docs, code samples, and exercises.

##### File structure
- Top-level directories:
- .vscode (IDE settings)
- BASICS (Markdown theory notes)
- EXPLOIT (sub-folders 0x200, 0x300 containing C code, markdown write-ups, compiled binaries)
- K & R (organized by chapter: examples and exercises)
- OS (small C programs modeling CPU/memory)
- README.md (high-level study plan)
- There are no build scripts or deployment configs—each component lives independently.
- C source files and markdown docs coexist; binaries appear under EXPLOIT as proofs of concept.

##### README for additional insights
- Confirms this is a “Systems-Programming personal study” covering Operating Systems, K&R, Exploits.
- No prescribed architecture or external dependencies beyond a C toolchain and a Markdown renderer.

##### Final checklist
- Clearly labeled components matching the folder names
- Annotation of key technologies: “gcc/clang”, “Markdown”, “VSCode”
- A title: “Systems-Programming Personal Study Architecture”

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Tooling" 
        VSCode["VSCode (.vscode)"]:::tools
        Compiler["gcc/clang"]:::tools
        Shell["Shell"]:::tools
    end

    subgraph "Documentation"
        README["README.md"]:::docs
        BASICS["BASICS"]:::basics
    end

    subgraph "EXPLOIT Module"
        EXP_DOC200["EXPLOIT 0x200 MD"]:::docs
        EXP_DOC300["EXPLOIT 0x300 MD"]:::docs
        EXP_C200["EXPLOIT 0x200 C Code"]:::code
        EXP_C300["EXPLOIT 0x300 C Code"]:::code
        EXP_BIN200["EXPLOIT 0x200 Binaries"]:::bin
        EXP_BIN300["EXPLOIT 0x300 Binaries"]:::bin
    end

    subgraph "K & R Module"
        KR_EX1["K & R Chap1 Examples"]:::code
        KR_EX2["K & R Chap1 Exercises"]:::code
        KR_CH2["K & R Chap2 Files"]:::code
    end

    subgraph "OS Module"
        CPU["cpu.c"]:::code
        MEM["mem.c"]:::code
    end

    VSCode -->|"edit"| README
    VSCode -->|"edit"| BASICS
    VSCode -->|"edit"| EXP_DOC200
    VSCode -->|"edit"| EXP_DOC300
    VSCode -->|"edit"| EXP_C200
    VSCode -->|"edit"| EXP_C300
    VSCode -->|"edit"| KR_EX1
    VSCode -->|"edit"| KR_EX2
    VSCode -->|"edit"| KR_CH2
    VSCode -->|"edit"| CPU
    VSCode -->|"edit"| MEM

    README -->|"references"| BASICS
    BASICS -->|"concepts"| EXP_DOC200
    EXP_DOC200 -->|"references"| EXP_C200
    EXP_DOC300 -->|"references"| EXP_C300

    EXP_C200 -->|"compile"| Compiler
    EXP_C300 -->|"compile"| Compiler
    KR_EX1 -->|"compile"| Compiler
    KR_EX2 -->|"compile"| Compiler
    KR_CH2 -->|"compile"| Compiler
    CPU -->|"compile"| Compiler
    MEM -->|"compile"| Compiler

    Compiler -->|"produces"| EXP_BIN200
    Compiler -->|"produces"| EXP_BIN300

    EXP_BIN200 -->|"run"| Shell
    EXP_BIN300 -->|"run"| Shell

    classDef tools fill:#cccccc,stroke:#333,stroke-width:1px;
    classDef docs fill:#add8e6,stroke:#333,stroke-width:1px;
    classDef basics fill:#b0e0e6,stroke:#333,stroke-width:1px;
    classDef exploit fill:#ffa500,stroke:#333,stroke-width:1px;
    classDef kr fill:#98fb98,stroke:#333,stroke-width:1px;
    classDef os fill:#ffff99,stroke:#333,stroke-width:1px;
    classDef code fill:#f0f8ff,stroke:#333,stroke-width:1px;
    classDef bin fill:#ffe4e1,stroke:#333,stroke-width:1px;

    click VSCode "https://github.com/tifelabs/system_prog/blob/main/.vscode"
    click README "https://github.com/tifelabs/system_prog/blob/main/README.md"
    click BASICS "https://github.com/tifelabs/system_prog/blob/main/BASICS/nand.md"
    click EXP_DOC200 "https://github.com/tifelabs/system_prog/tree/main/EXPLOIT/0x200"
    click EXP_DOC300 "https://github.com/tifelabs/system_prog/tree/main/EXPLOIT/0x300"
    click EXP_C200 "https://github.com/tifelabs/system_prog/tree/main/EXPLOIT/0x200"
    click EXP_C300 "https://github.com/tifelabs/system_prog/tree/main/EXPLOIT/0x300"
    click EXP_BIN200 "https://github.com/tifelabs/system_prog/blob/main/EXPLOIT/0x200/a.out"
    click EXP_BIN300 "https://github.com/tifelabs/system_prog/blob/main/EXPLOIT/0x300/a.out"
    click KR_EX1 "https://github.com/tifelabs/system_prog/tree/main/K & R/Chap 1/examples"
    click KR_EX2 "https://github.com/tifelabs/system_prog/tree/main/K & R/Chap 1/exercises"
    click KR_CH2 "https://github.com/tifelabs/system_prog/tree/main/K & R/Chap 2"
    click CPU "https://github.com/tifelabs/system_prog/blob/main/OS/cpu.c"
    click MEM "https://github.com/tifelabs/system_prog/blob/main/OS/mem.c"
```
