{"id":16445537,"url":"https://github.com/japrozs/rim_llvm","last_synced_at":"2026-04-29T17:01:31.516Z","repository":{"id":45796065,"uuid":"514620644","full_name":"japrozs/rim_llvm","owner":"japrozs","description":"a smol compiler I've been working on for the past few weeks","archived":false,"fork":false,"pushed_at":"2022-07-18T18:03:54.000Z","size":23,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T03:08:32.936Z","etag":null,"topics":["c","compiler","interpreters","llir","llvm"],"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/japrozs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-16T15:50:15.000Z","updated_at":"2023-01-31T01:13:40.000Z","dependencies_parsed_at":"2022-07-17T05:46:03.597Z","dependency_job_id":null,"html_url":"https://github.com/japrozs/rim_llvm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japrozs%2Frim_llvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japrozs%2Frim_llvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japrozs%2Frim_llvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japrozs%2Frim_llvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/japrozs","download_url":"https://codeload.github.com/japrozs/rim_llvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238445854,"owners_count":19473823,"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","interpreters","llir","llvm"],"created_at":"2024-10-11T09:44:42.935Z","updated_at":"2025-10-27T05:31:41.890Z","avatar_url":"https://github.com/japrozs.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rim `llvm`\n\nRim is a tiny compiler that I've been working on for the past 2 weeks. Right now it just compiles the code to `llir` but I'm need to add a lot of stuff to it.\n\n## Usage\n\n```bash\n# make sure you have llvm installed\n$ git clone https://github.com/japrozs/rim_llvm.git\n$ cd rim_llvm\n$ make -j$(nproc)\n$ ./out/rimc samples/basic.rm\n```\n\n## Example\n\n[samples/basic.rm](samples/basic.rm)\n```rust\nfn my_fn(argument, list){\n\tlet var_inside_function : int = 123;\n}\n\nlet declaration : string = \"this is a global constant declaration\";\nlet number : int = 123123;\n```\n\n`output` \n```llvm\n; ModuleID = 'samples/basic.rm'\nsource_filename = \"samples/basic.rm\"\n\n@declaration = global [39 x i8] c\"\\22this is a global constant declaration\\22\"\n\ndefine i32 @main() {\nentry:\n  %number = alloca i32, align 4\n  store i32 123123, i32* %number, align 4\n  ret i32 0\n}\n\ndeclare i8 @printf(i8 %0)\n\ndefine i8 @my_fn(i8 %0) {\nentry:\n  %var_inside_function = alloca i32, align 4\n  store i32 123, i32* %var_inside_function, align 4\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaprozs%2Frim_llvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaprozs%2Frim_llvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaprozs%2Frim_llvm/lists"}