{"id":22465440,"url":"https://github.com/DSCmatter/AegisCC","last_synced_at":"2025-10-16T10:30:23.823Z","repository":{"id":266669028,"uuid":"898984344","full_name":"DSCmatter/x86-64-compiler","owner":"DSCmatter","description":"A minimalistic x86-64 JIT compiler written in C++","archived":false,"fork":false,"pushed_at":"2024-12-14T16:10:54.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-14T17:20:26.655Z","etag":null,"topics":["assembly","compilers","cpp","jit"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DSCmatter.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}},"created_at":"2024-12-05T12:06:11.000Z","updated_at":"2024-12-14T16:10:57.000Z","dependencies_parsed_at":"2024-12-05T13:25:43.657Z","dependency_job_id":"894b7b86-65d1-4094-8ce7-a97bf02e79f0","html_url":"https://github.com/DSCmatter/x86-64-compiler","commit_stats":null,"previous_names":["dscmatter/x86-64-compiler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSCmatter%2Fx86-64-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSCmatter%2Fx86-64-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSCmatter%2Fx86-64-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSCmatter%2Fx86-64-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DSCmatter","download_url":"https://codeload.github.com/DSCmatter/x86-64-compiler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236706775,"owners_count":19192045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["assembly","compilers","cpp","jit"],"created_at":"2024-12-06T10:08:06.043Z","updated_at":"2025-10-16T10:30:23.819Z","avatar_url":"https://github.com/DSCmatter.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AegisCC\n\nThis project demonstrates how to dynamically generate and execute machine code at runtime using executable memory in C++. It includes examples of using machine code embedded in memory, dynamically generated assembly instructions, and calling functions from C++ at runtime.\n\n---\n\n## **Overview**\n\nThis program dynamically generates x86-64 assembly instructions to call a global function (`test`) that manipulates a global vector of integers. The machine code is stored in executable memory, and the program executes those instructions by casting the allocated memory to a function pointer.\n\n---\n\n### Prerequisites\n- **Linux OS / WSL(used)**\n- **g++ Compiler** (Install using: `sudo apt install g++`)\n\n---\n\n## **Steps to Run the Program**\n\n1. Update the system packages:\n```\nsudo apt update\n```\n2. Install g++:\n```\nsudo apt install g++\n```\n3. Compile and run the programs:\n   C++ code:\n ```\n g++ -o hello_1 hello_1.cpp\n ./hello_1\n```\nAssembly Code:\n```\nas chunk.s -o chunk.o\nobjdump -M intel -D chunk.o\n```\n\n### Outputs are given in 'read.txt' files in both part1 \u0026 part2 \n\n### Contributions\nAny contributions are welcome! Feel free to fork the repository, submit issues, and create pull requests for improvements or fixes.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDSCmatter%2FAegisCC","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDSCmatter%2FAegisCC","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDSCmatter%2FAegisCC/lists"}