{"id":18627525,"url":"https://github.com/yugr/gcc-interp","last_synced_at":"2026-05-05T23:31:35.736Z","repository":{"id":129418865,"uuid":"185041459","full_name":"yugr/gcc-interp","owner":"yugr","description":"Run C files as standalone scripts","archived":false,"fork":false,"pushed_at":"2022-01-18T00:19:36.000Z","size":8,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-17T09:07:56.267Z","etag":null,"topics":["c","cplusplus","interpreter","proof-of-concept","script"],"latest_commit_sha":null,"homepage":"","language":"Python","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/yugr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2019-05-05T14:23:34.000Z","updated_at":"2024-09-12T21:54:37.000Z","dependencies_parsed_at":"2023-03-13T11:23:10.102Z","dependency_job_id":null,"html_url":"https://github.com/yugr/gcc-interp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yugr/gcc-interp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yugr%2Fgcc-interp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yugr%2Fgcc-interp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yugr%2Fgcc-interp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yugr%2Fgcc-interp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yugr","download_url":"https://codeload.github.com/yugr/gcc-interp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yugr%2Fgcc-interp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","cplusplus","interpreter","proof-of-concept","script"],"created_at":"2024-11-07T04:42:41.065Z","updated_at":"2026-05-05T23:31:35.706Z","avatar_url":"https://github.com/yugr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"`gcci` allows to run C files as scripts, omitting the compilation step\n(actually hiding it).  Most importantly, modified file still remains\na valid C code and can be compiled by normal means.\n\nSelf-executable C code is particularly useful when you make\na library of small examples/snippets.\n\nExample usage:\n```\n$ cat hello.c\n#include \u003cstdio.h\u003e\nint main() {\n  printf(\"Hello world!\\n\");\n  return 0;\n}\n\n# Insert \"shebang\"\n$ gcci -i hello.c\n\n# Run!\n$ ./hello.c\nHello world!\n```\n\nYou can also execute without instrumentation:\n```\n$ gcci hello.c\nHello world!\n```\n\nIf you get `gcci: command not found` error in last line, you need to add `gcci` to `PATH`\nor use absolute path instead:\n```\n$ gcci -i -a ...\n```\n\nTo override default compilation flags (`-Wall -DNDEBUG -O2`) use `--compiler-flags` option\nduring instrumentation stage:\n```\n$ gcci -i --compiler-flags='-O0 -w' ...\n```\n\n`gcci` is based on a hack from [What's the appropriate Go shebang line?](https://stackoverflow.com/questions/7707178/whats-the-appropriate-go-shebang-line)\n\nTODO:\n* add compilation cache (in `$HOME/.gcci`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyugr%2Fgcc-interp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyugr%2Fgcc-interp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyugr%2Fgcc-interp/lists"}