{"id":13418609,"url":"https://github.com/c2lang/c2compiler","last_synced_at":"2026-03-11T22:02:43.847Z","repository":{"id":6344046,"uuid":"7580238","full_name":"c2lang/c2compiler","owner":"c2lang","description":"the c2 programming language","archived":false,"fork":false,"pushed_at":"2026-03-08T11:38:28.000Z","size":13158,"stargazers_count":817,"open_issues_count":30,"forks_count":55,"subscribers_count":31,"default_branch":"master","last_synced_at":"2026-03-08T12:21:45.946Z","etag":null,"topics":["c","c2","compiler","programming-language"],"latest_commit_sha":null,"homepage":"c2lang.org","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c2lang.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2013-01-12T20:40:47.000Z","updated_at":"2026-03-08T11:38:31.000Z","dependencies_parsed_at":"2025-12-18T01:13:09.400Z","dependency_job_id":null,"html_url":"https://github.com/c2lang/c2compiler","commit_stats":{"total_commits":1330,"total_committers":15,"mean_commits":88.66666666666667,"dds":0.0736842105263158,"last_synced_commit":"0ffb3d615b74a2ec1e3bc0aa00a6d228cea366b8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c2lang/c2compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c2lang%2Fc2compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c2lang%2Fc2compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c2lang%2Fc2compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c2lang%2Fc2compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c2lang","download_url":"https://codeload.github.com/c2lang/c2compiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c2lang%2Fc2compiler/sbom","scorecard":{"id":260990,"data":{"date":"2025-08-11","repo":{"name":"github.com/c2lang/c2compiler","commit":"954f3969c39fcbee99bee1b3dd4531911da755c6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Code-Review","score":1,"reason":"Found 4/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 19 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/c2lang/c2compiler/main.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T10:49:59.447Z","repository_id":6344046,"created_at":"2025-08-17T10:49:59.447Z","updated_at":"2025-08-17T10:49:59.447Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30404100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T21:51:19.558Z","status":"ssl_error","status_checked_at":"2026-03-11T21:50:57.892Z","response_time":84,"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","c2","compiler","programming-language"],"created_at":"2024-07-30T22:01:04.441Z","updated_at":"2026-03-11T22:02:43.842Z","avatar_url":"https://github.com/c2lang.png","language":"C","readme":"\n# C2Compiler - Native version\n\nThis is the C2 compiler written in C2 itself.\n\nC2 is an evolution of C, please see http://c2lang.org for more info.\n\nThe first version was written in C++ and can be found in the history of\nthis archive too.\n\n\n## Installation\n\nsee the [installation document](INSTALL.md) for installation on Linux or OSX.\n\n## Libraries\n\n*c2c* needs 2 environment variables:\n\n- *C2_LIBDIR* - where to find the library headers\n- *C2_PLUGINDIR* - where to find the compiled c2c plugins\n\nThe *C2_LIBDIR* should point to \u003cpath_to_c2compiler\u003e/libs\nThe *C2_PLUGINDIR* may be anywhere and is used by the install_plugins.sh script\n\nAll these variables may contain multiple paths, separated by colons (:)\n\n## Bootstrap\n\nSince *c2c* is written in C2, a bootstrap is needed. Please run\n\n```bash\n. ./env.sh\nmake -C bootstrap\n./install_plugins.sh\n```\n\nThis will create a boostrap c2c version and use it to build the c2c compiler.\nThe output will be in the folder output/\n\nNow you can run the regular C2 compiler to compile (other) C2 projects\n\n```bash\n./output/c2c/c2c\n```\n\nA nicer way would be to create a symlink in ~/bin:\n```bash\nln -s \u003cpath_to_c2compiler\u003e/output/c2c/c2c ~/bin/c2c\n```\n\nAlso make sure ~/bin is in your PATH variable\n\n### Plugins\nThe C2 compiler has a _plugin_ system, that allows plugins to be loaded during\ncompilation and the AST to be modified by them.\n\n*c2c* will look for plugins in the environment variable $C2_PLUGINDIR (set by the\nenv.sh script). Also the path can be set in the _build-file_. To install the plugins\ninitially, run *./install_plugins.sh*. This will create ~/c2_plugins/ and copy all\nplugins there.\n\nTo run *c2c* without plugins, use _--noplugins_.\n\n\n### Tests\n\nTo run the unit tests run\n\n```bash\n./output/tester/tester test\n```\n\n\n\n","funding_links":[],"categories":["TODO scan for Android support in followings","Uncategorized","C++","C"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc2lang%2Fc2compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc2lang%2Fc2compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc2lang%2Fc2compiler/lists"}