{"id":24864294,"url":"https://github.com/i3abghany/rustyc","last_synced_at":"2026-05-09T15:20:40.866Z","repository":{"id":192318723,"uuid":"686481247","full_name":"i3abghany/rustyc","owner":"i3abghany","description":"A C compiler in Rust and LLVM.","archived":false,"fork":false,"pushed_at":"2023-11-02T23:48:46.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T23:51:51.073Z","etag":null,"topics":["c","compiler","llvm","x86-64"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/i3abghany.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-09-02T23:55:31.000Z","updated_at":"2024-08-13T05:10:14.000Z","dependencies_parsed_at":"2023-10-01T19:19:24.426Z","dependency_job_id":"1d6c2176-2cd3-4419-93da-edb67a8867c3","html_url":"https://github.com/i3abghany/rustyc","commit_stats":null,"previous_names":["i3abghany/rustyc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i3abghany%2Frustyc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i3abghany%2Frustyc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i3abghany%2Frustyc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i3abghany%2Frustyc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i3abghany","download_url":"https://codeload.github.com/i3abghany/rustyc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245711203,"owners_count":20660035,"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","llvm","x86-64"],"created_at":"2025-01-31T23:51:36.353Z","updated_at":"2026-05-09T15:20:35.842Z","avatar_url":"https://github.com/i3abghany.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RustyC\n\nRustyC is a compiler written in Rust that supports a subset of the \nC programming language. It is capable of producing x86_64 native\nassembly and LLVM IR.\n\n## Example Usage\n\nAn example of what RustyC can compile is shown below.\n\n```c\n// fib.c\n\nint fib_recursive(int n) {\n    if (n \u003c= 1) return n;\n    return fib_recursive(n - 1) + fib_recursive(n - 2);\n}\n\nint fib_iterative(int n) {\n    int a = 0;\n    int b = 1;\n    for (int i = 0; i \u003c n; i = i + 1) {\n        int c = a;\n        a = b;\n        b = c + b;\n    }\n    return a;\n}\n\nint main() {\n    return !(fib_recursive(10) == fib_iterative(10));\n}\n```\n\n```bash\n\n$ cargo b --release\n$ ./target/release/rustyc --help\n\nUsage: rustyc.exe [OPTIONS] [INPUT_SOURCE_FILES]...\n\nArguments:\n  [INPUT_SOURCE_FILES]...\n\nOptions:\n  -l, --emit-llvm\n  -c, --emit-object\n  -s, --emit-asm\n  -o, --exe-filename \u003cEXE_FILENAME\u003e\n  -h, --help\n\n$ ./target/release/rustyc fib.c -o fib\n$ ./fib; echo $?\n0\n```\n\n## Pre-requisites\n\n- Rust 1.70.0 or later\n- LLVM 15.0.x or later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi3abghany%2Frustyc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi3abghany%2Frustyc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi3abghany%2Frustyc/lists"}