{"id":46691715,"url":"https://github.com/aethel-systems/aethelium","last_synced_at":"2026-03-13T08:01:06.424Z","repository":{"id":343001063,"uuid":"1175085203","full_name":"Aethel-Systems/Aethelium","owner":"Aethel-Systems","description":"Aethelium: A hardware-first, runtime-less language for modern systems programming. Bypassing linkers and bulky frameworks to emit UEFI and bare-metal binaries directly.","archived":false,"fork":false,"pushed_at":"2026-03-09T12:17:46.000Z","size":1215,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-10T10:45:24.447Z","etag":null,"topics":["bare-metal","compiler","cross-compiler","hardware-abstraction","language","macos","operating-system","programming","system","uefi","windows","x86-64"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aethel-Systems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-07T07:50:37.000Z","updated_at":"2026-03-09T12:17:49.000Z","dependencies_parsed_at":"2026-03-10T05:00:39.709Z","dependency_job_id":null,"html_url":"https://github.com/Aethel-Systems/Aethelium","commit_stats":null,"previous_names":["aethel-systems/aethelium"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Aethel-Systems/Aethelium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aethel-Systems%2FAethelium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aethel-Systems%2FAethelium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aethel-Systems%2FAethelium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aethel-Systems%2FAethelium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aethel-Systems","download_url":"https://codeload.github.com/Aethel-Systems/Aethelium/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aethel-Systems%2FAethelium/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30372532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bare-metal","compiler","cross-compiler","hardware-abstraction","language","macos","operating-system","programming","system","uefi","windows","x86-64"],"created_at":"2026-03-09T04:12:17.159Z","updated_at":"2026-03-11T06:00:27.010Z","avatar_url":"https://github.com/Aethel-Systems.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aethelium: A Hardware-First, Runtime-Less Systems Language Toolchain\n\n[中文](README_CN.md)\n\n\u003e **A hardware-first, runtime-less systems language toolchain built for modern low-level programming.**\n\n**Aethelium** is an independent, self-contained systems programming language toolchain. It bypasses the cumbersome traditional \"compiler-assembler-linker\" workflow, focusing on providing an ultra-streamlined build solution for **UEFI environments** and **bare-metal** development.\n\nThis repository contains the **Bootstrap Core** of Aethelium. It is capable of generating native machine code or UEFI PE executables for target architectures directly on a host machine (macOS/Linux), without relying on standard object files (`.obj`/`.o`) or external linkers.\n\n---\n\n## 🏗 Core Architecture\n\nAethelium utilizes a unique **\"Weaver-Filler\"** dual-engine architecture, achieving a direct mapping from high-level semantics to silicon logic:\n\n*   **Binary Weaver (`toolsASM`)**:\n    Responsible for the physical orchestration of the low-level binary layout.\n*   **Logic Filler (`toolsC`)**:\n    A compiler frontend implemented in C. It handles semantic analysis and AST construction for Aethelium syntax, precisely \"filling\" the generated machine code logic into the memory slots preset by the Weaver.\n\n### Directory Structure\n\n```text\nAethelium/\n├── Makefile                # Unified build orchestration system\n├── README.md               # Technical documentation\n└── core/                   # Core toolchain source code\n    ├── toolsC/             # [Frontend] Compiler frontend \u0026 logic filling layer\n    │   ├── include/        #   - Core headers (binary format specs, AEFS protocol)\n    │   ├── aetb/           #   - AETB intermediate format generation engine\n    │   ├── compiler/       #   - Main logic for lexical/syntax analysis \u0026 code gen\n    │   └── mkiso/aefs/     #   - Boot media and file system support\n    └── toolsASM/           # [Backend] Binary Weaver \u0026 assembly emission layer\n        ├── include/        #   - Assembly interface definitions\n        └── src/            #   - Core instruction emission \u0026 layout implementation (NASM)\n```\n\n---\n\n## 🛠 Build Workflow\n\n### Prerequisites\n\nBuilding the Aethelium toolchain requires the following environment:\n\n| Component | Requirement | Description |\n| :--- | :--- | :--- |\n| **Compiler** | Clang / GCC | C11 support required; Clang recommended |\n| **Assembler** | NASM 2.15+ | Used for backend binary orchestration |\n| **Build System** | GNU Make 4.0+ | Automated build management |\n\n*Source compilation supports: Darwin (macOS) x86_64/arm64. Final output supports: macOS x86_64/arm64 and Windows x86_64.*\n\n### Build Commands\n\nExecute the following in the repository root:\n\n1.  **Environment Check**\n    ```bash\n    make check-platform\n    ```\n\n2.  **Build Core Compiler**\n    ```bash\n    make all\n    ```\n    *Note: This command automatically compiles `toolsC` and `toolsASM`, linking them into the final `aethelc` executable.*\n\n3.  **Verification**\n    Once built, the compiler binary will be located at:\n    ```text\n    build/output/aethelc\n    ```\n\n### Other Operations\n\n```bash\nmake clean          # Remove intermediate build files\nmake distclean      # Reset repository to initial state\nmake status         # View current build artifact information\n```\n\n---\n\n## ⚡ Technical Features\n\n*   **Runtime-less**: Aethelium does not depend on `libc` or any complex runtime environment. Generated binaries contain zero redundancy beyond hardware instructions.\n*   **Direct UEFI Emission**: The compiler features built-in PE32+ format generation. A single command produces a `.efi` application without requiring massive frameworks like EDK II.\n*   **Declarative Hardware Control**: Use semantics like `@gate` and `@packed` to achieve precise control over memory alignment, calling conventions, and register behavior at the high-level language layer.\n\n---\n\n## 📺 Demo \u0026 Aesthetics\n\n![Aethelium UEFI Demo](assets/screenshot.png)\n*Aethelium running a \"Hello World\" UEFI app in QEMU (OVMF).*\n\n### The Aethelium Flavor\n```aethelium\n@entry\n@gate(type: \\efi)\nfunc efi/main(image/handle: ptr\u003cVoid\u003e, sys/table: ptr\u003cEFI/SystemTable\u003e) : UInt64 {\n    // Navigable hierarchy: sys/cpu/id, efi/con_out...\n    print(\"Hello, AethelOS World!\")\n\n    hardware {\n        loop {\n            hardware\\isa\\pause() // Direct ISA passthrough\n        }\n    }\n    return 0 \n}\n```\n*More examples are located in the examples directory.*\n\n---\n\n## User Manuals\n\n*   **Aethelium Language Reference Manual.md**: Quick language reference.\n*   **Hardware Layer Manual_Machine Code Cross-Reference_2026-03-06.md**: Hardware layer mapping tables.\n\n---\n\n## ⚠️ Notes\n\n*   **Target Output**: The binaries generated by this toolchain are typically in **Aethelium Native**, **x86 Machine Code**, or **UEFI PE** formats. They cannot be executed directly on a Windows or Linux host (unless within a VM or bare-metal environment).\n*   **Cross-Compilation**: The toolchain provided in this repository is essentially a cross-compiler running on a host machine.\n\n---\n\n## 📄 License\n\nThis project is licensed under the **GNU General Public License v3.0 (GPLv3)**.\n\n**Copyright (C) 2024-2026 Aethel-Systems. All rights reserved.**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faethel-systems%2Faethelium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faethel-systems%2Faethelium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faethel-systems%2Faethelium/lists"}