{"id":13479887,"url":"https://github.com/Vexu/arocc","last_synced_at":"2025-03-27T10:30:57.010Z","repository":{"id":36963127,"uuid":"342206351","full_name":"Vexu/arocc","owner":"Vexu","description":"A modern fully featured C compiler.","archived":false,"fork":false,"pushed_at":"2025-03-14T16:45:37.000Z","size":4391,"stargazers_count":1303,"open_issues_count":44,"forks_count":57,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-22T18:00:46.153Z","etag":null,"topics":["c","compiler","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/Vexu.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-02-25T10:26:10.000Z","updated_at":"2025-03-22T01:18:26.000Z","dependencies_parsed_at":"2023-02-19T07:01:09.991Z","dependency_job_id":"5f35e27d-add7-440b-89de-d2a68157426e","html_url":"https://github.com/Vexu/arocc","commit_stats":{"total_commits":1416,"total_committers":29,"mean_commits":"48.827586206896555","dds":"0.40960451977401124","last_synced_commit":"886921df90ce838819e2f96cc2e37eaedbbaff4f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vexu%2Farocc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vexu%2Farocc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vexu%2Farocc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vexu%2Farocc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vexu","download_url":"https://codeload.github.com/Vexu/arocc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245826756,"owners_count":20678852,"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":["c","compiler","zig"],"created_at":"2024-07-31T16:02:24.895Z","updated_at":"2025-03-27T10:30:57.005Z","avatar_url":"https://github.com/Vexu.png","language":"Zig","funding_links":[],"categories":["Zig","Applications","Systems Programming"],"sub_categories":["Compilers and Interpreters"],"readme":"\u003cimg src=\"https://aro.vexu.eu/aro-logo.svg\" alt=\"Aro\" width=\"120px\"/\u003e \u003c!-- Graphic design is my passion --\u003e\n\n# Aro\n\nA C compiler with the goal of providing fast compilation and low memory usage with good diagnostics.\n\nThe project intends to support standard C and all common extensions:\n\n| Version          | status                                                                                                     |\n| ---------------- | ---------------------------------------------------------------------------------------------------------- |\n| C23              | Complete excluding [Add IEEE 754 interchange and extended types](https://github.com/Vexu/arocc/issues/552) |\n| C17              | Complete excluding warnings [Ensure C1/ compatibility](https://github.com/Vexu/arocc/issues/820)           |\n| C11              | Complete excluding warnings [Ensure C11 compatibility](https://github.com/Vexu/arocc/issues/821)           |\n| C99              | Complete excluding warnings [Ensure C99 compatibility](https://github.com/Vexu/arocc/issues/822)           |\n| C95              | Complete                                                                                                   |\n| C89              | Complete                                                                                                   |\n| GNU extensions   | [Ensure GNU C extension compatibility](https://github.com/Vexu/arocc/issues/824)                           |\n| Clang extensions | [ Ensure Clang C extension compatibility](https://github.com/Vexu/arocc/issues/825)                        |\n\nAro will be used as the C frontend for [C to Zig translation](https://github.com/ziglang/translate-c/) in the Zig toolchain.\n\n## Codegen\n\nEarlier there was a proof of concept backend capable of producing a valid hello world binary\nbut it was removed to make way for a new more capable backend which is still under construction.\nThe new backend will reuse parts of the self-hosted Zig compiler.\n\n[#542](https://github.com/Vexu/arocc/issues/542)\n\n## Using aro as a module\n\nThe following assumes that your package has a `build.zig.zon` file.\n\n```sh-session\nzig fetch --save git+https://github.com/Vexu/arocc.git\n```\n\nAdd the following to your `build.zig`:\n\n```zig\nconst aro = b.dependency(\"aro\", .{\n    .target = target,\n    .optimize = optimize,\n});\n\nexe.root_module.addImport(\"aro\", aro.module(\"aro\"));\n\n// Optional; this will make aro's builtin includes (the `include` directory of this repo) available to `Toolchain`\nb.installDirectory(.{\n    .source_dir = aro.path(\"include\"),\n    .install_dir = .prefix,\n    .install_subdir = \"include\",\n});\n\n```\n\nNow you can do\n\n```zig\nconst aro = @import(\"aro\");\n```\n\nin your Zig code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVexu%2Farocc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVexu%2Farocc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVexu%2Farocc/lists"}