{"id":15771578,"url":"https://github.com/nwtgck/8cc-elc-hs","last_synced_at":"2026-04-30T00:02:44.299Z","repository":{"id":87735604,"uuid":"131177940","full_name":"nwtgck/8cc-elc-hs","owner":"nwtgck","description":"C Compiler written in Haskell powered by 8cc and ELVM","archived":false,"fork":false,"pushed_at":"2018-04-29T01:11:10.000Z","size":2284,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2024-10-11T15:08:48.346Z","etag":null,"topics":["c","compiler","haskell"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nwtgck.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-26T15:45:57.000Z","updated_at":"2018-05-03T04:09:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1a60980-5f95-435a-84dc-e2c9aecc1dcf","html_url":"https://github.com/nwtgck/8cc-elc-hs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nwtgck/8cc-elc-hs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2F8cc-elc-hs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2F8cc-elc-hs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2F8cc-elc-hs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2F8cc-elc-hs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nwtgck","download_url":"https://codeload.github.com/nwtgck/8cc-elc-hs/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2F8cc-elc-hs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","compiler","haskell"],"created_at":"2024-10-04T15:03:16.964Z","updated_at":"2026-04-30T00:02:44.242Z","avatar_url":"https://github.com/nwtgck.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 8cc-elc-hs\n[![wercker status](https://app.wercker.com/status/58d52d173d227199e549fdf158f44561/s/develop \"wercker status\")](https://app.wercker.com/project/byKey/58d52d173d227199e549fdf158f44561)\n\nC Compiler written in Haskell powered by [8cc](https://github.com/rui314/8cc) and [ELVM](https://github.com/shinh/elvm).\n\n\n\n## Build\n\n```bash\nstack build --fast\n```\n\nNOTE: It takes very very long time to compile.\n\n## Install\n\n```bash\nstack install\n```\n\nThen, `8cc-hs` and `elc-hs` commands will be available.\n\n\n## Compiler Usage\n\nThis section explains how to compile C program.\n\nInput : `example_c/hello.c`  \nOutput: `hello` executable\n\n```bash\n(echo hs \u0026\u0026 cat example_c/hello.c | 8cc-hs) | elc-hs \u003e hello.hs\nstack ghc hello.hs\n./hello\n```\n\nImportant thing is that `8cc-hs` and `elc-hs` are written in pure Haskell.\n\n\n## References\n\n* [yutopp/8cc.rill](https://github.com/yutopp/8cc.rill)\n* [rhysd/8cc.vim: C Compiler written in Vim script](https://github.com/rhysd/8cc.vim)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwtgck%2F8cc-elc-hs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwtgck%2F8cc-elc-hs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwtgck%2F8cc-elc-hs/lists"}