{"id":19503095,"url":"https://github.com/brandonki/arcvm","last_synced_at":"2025-10-05T16:10:30.377Z","repository":{"id":108745490,"uuid":"408874445","full_name":"BrandonKi/ARCVM","owner":"BrandonKi","description":"Small optimizing compiler backend with an SSA-based IR.","archived":false,"fork":false,"pushed_at":"2022-03-26T19:46:11.000Z","size":401,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-26T00:33:19.877Z","etag":null,"topics":["compiler","compiler-backend","low-level","machine-code","native","optimization","ssa","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BrandonKi.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":"2021-09-21T15:28:31.000Z","updated_at":"2025-03-07T17:56:27.000Z","dependencies_parsed_at":"2023-04-23T12:46:52.106Z","dependency_job_id":null,"html_url":"https://github.com/BrandonKi/ARCVM","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BrandonKi/ARCVM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonKi%2FARCVM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonKi%2FARCVM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonKi%2FARCVM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonKi%2FARCVM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrandonKi","download_url":"https://codeload.github.com/BrandonKi/ARCVM/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonKi%2FARCVM/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278478757,"owners_count":25993719,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"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":["compiler","compiler-backend","low-level","machine-code","native","optimization","ssa","x86-64"],"created_at":"2024-11-10T22:19:33.413Z","updated_at":"2025-10-05T16:10:30.359Z","avatar_url":"https://github.com/BrandonKi.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ARCVM\n(Not complete, this is a work in progress)\n\nreplacement for https://github.com/BrandonKi/ARCVM-old\n\nCompiler backend for https://github.com/BrandonKi/ARCANE\n\nProvides a C++ API for IR generation. The IR is LLVM inspired three-address-code in SSA form. Currently has two main backends one being a simple interpreter and the other being a x86_64 backend which only works on windows so far.\n\n## IR Type System\nThere are four main IR types: pointer, reference, immediate, and label.\n\nPointers represent an integer value that points to a block of memory called a provenance. If the pointer leaves it's provenance then the program is invalid. This will be useful for alias analysis and other optimizations. To create a new pointer into an existing provenance it must be derived from an existing pointer.\n\nReferences are the main type that will be used for the whole IR. Each reference is essentially a virtual register that will get properly renamed/mapped to physical registers or may be elided completely.\n\nImmediates represent a constant value and can be put into any instruction.\n\nLabels have identical functionality to labels in assembly languages. They represent a location that can be jumped/branched to.\n\n## examples\n\n### add two numbers\nUses stack-allocated variables instead of just adding immediates for demonstration purposes.\n```\n[entrypoint]\ndefine function main() -\u003e i32 {\n  #main\n    %0 = alloc i32\n    %1 = alloc i32\n    %2 = alloc i32\n    store %0, 10\n    store %1, 10\n    %3 = load %0\n    %4 = load %1\n    %5 = add %3, %4\n    store %2, %5\n    %6 = load %2\n    ret %6\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonki%2Farcvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonki%2Farcvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonki%2Farcvm/lists"}