{"id":18749671,"url":"https://github.com/coditva/uc-to-llvm","last_synced_at":"2025-09-04T16:44:12.045Z","repository":{"id":98240369,"uuid":"128722125","full_name":"coditva/uc-to-llvm","owner":"coditva","description":"A small uC compiler front-end for LLVM","archived":false,"fork":false,"pushed_at":"2018-04-13T20:06:19.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T10:45:14.644Z","etag":null,"topics":["compiler","compiler-construction","lex","llvm","llvm-c","llvm-ir","yacc"],"latest_commit_sha":null,"homepage":"","language":"Yacc","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/coditva.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":"2018-04-09T06:02:14.000Z","updated_at":"2023-01-20T01:39:55.000Z","dependencies_parsed_at":"2023-05-18T21:45:29.408Z","dependency_job_id":null,"html_url":"https://github.com/coditva/uc-to-llvm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coditva/uc-to-llvm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2Fuc-to-llvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2Fuc-to-llvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2Fuc-to-llvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2Fuc-to-llvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coditva","download_url":"https://codeload.github.com/coditva/uc-to-llvm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2Fuc-to-llvm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273641115,"owners_count":25142242,"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-09-04T02:00:08.968Z","response_time":61,"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-construction","lex","llvm","llvm-c","llvm-ir","yacc"],"created_at":"2024-11-07T17:08:18.258Z","updated_at":"2025-09-04T16:44:12.020Z","avatar_url":"https://github.com/coditva.png","language":"Yacc","readme":"## Micro C (*uC)* to *LLVM* compiler\nMicro C or *uC* is a subset of C language. This compiler compiles it to\n*LLVM* for execution.\n\n### How to\nMake sure you have *LLVM* library installed before compiling\n```bash\nmake        # compile\nmake test   # run tests\nmake clean  # cleanup\nTEST=test0.uc make test  # run tests on test0.uc only\n\n./uc FILENAME   # generate the LLVM IR\nllvm-as a.ll    # convert the IR to bytecode\nlli a.bc        # run the bytecode\n```\nThe IR generated can be found in `a.ll` and the byte-code is in `a.bc`.\n\n### About *uC*\nThe *uC* is a subset of C with very basic functionality. The implemented\nversion of *uC* supports the following:\n\n- All variable are of type `int32`.\n- Every statement ends with `;`.\n- Variable can be assigned as: `a = 10;` or `a = b;` given `b` is defined before\n- Arguments can be input as `a = $1;`.\n- There are _no_ functions. Everything is assumed to be in `main`.\n- Comments start with `//` and go on till end of line.\n- `if (condition) { statements }`\n- `if (condition) { statements } else { statements }`\n- `while (condition) { statments }`\n- `for (expression; condition; expression) { statements }`\n- `do { statements } while (condition);`\n- If there is only one statement, `{` and `}` can be dropped.\n- Loops and conditional statements _cannot_ be nested.\n- All operators from C are supported.\n- `break` and `return` are supported.\n\nSee programs in `tests/` for sample.\n\n### Author\nUtkarsh Maheshwari\n\n### License\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditva%2Fuc-to-llvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoditva%2Fuc-to-llvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditva%2Fuc-to-llvm/lists"}