{"id":18419871,"url":"https://github.com/shichenliu/c-compiler","last_synced_at":"2025-07-03T09:07:15.944Z","repository":{"id":38396169,"uuid":"79264872","full_name":"ShichenLiu/C-compiler","owner":"ShichenLiu","description":"C to LLVM / Python compiler","archived":false,"fork":false,"pushed_at":"2017-01-17T19:49:04.000Z","size":29,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T13:37:33.636Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShichenLiu.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}},"created_at":"2017-01-17T19:43:55.000Z","updated_at":"2024-10-23T02:12:40.000Z","dependencies_parsed_at":"2022-08-25T05:11:56.276Z","dependency_job_id":null,"html_url":"https://github.com/ShichenLiu/C-compiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ShichenLiu/C-compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShichenLiu%2FC-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShichenLiu%2FC-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShichenLiu%2FC-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShichenLiu%2FC-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShichenLiu","download_url":"https://codeload.github.com/ShichenLiu/C-compiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShichenLiu%2FC-compiler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263296491,"owners_count":23444494,"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":[],"created_at":"2024-11-06T04:18:48.318Z","updated_at":"2025-07-03T09:07:15.910Z","avatar_url":"https://github.com/ShichenLiu.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C-compiler\nC to LLVM / Python compiler\n\n# Configure Environment\n\n1. download from [llvm-3.8.0](http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz)\n2. ```tar xf llvm-3.8.0.src.tar.xz```\n3. ```cd llvm-3.8.0.src.tar.xz```\n4. ```mkdir build```\n5. ```cd build```\n6. ```../configure```\n7. ```make```\n8. ```make install```\n\n*Note that make will take about half an hour*\n\n# Compile\nTo compile the compiler source code  \n\n1. ```make clean```\n2. ```make```\n\n# Run code\n\n- ```./compiler [-vfph] \u003cc_code/your_code.c\u003e```\n\n- -v: display generated back-end code in the terminal.\n- -f: output generated back-end code to ```\u003cc_code/your_code.[(ll)/(py)]\u003e```.\n- -p: alternatively generate python code.\n- -h: help\n\n# Test code\n\n- using ```lli c_code/your_code.ll``` to test llvm back-end code.\n- using ```python c_code/your_code.py``` to test python back-end code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshichenliu%2Fc-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshichenliu%2Fc-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshichenliu%2Fc-compiler/lists"}