{"id":15451536,"url":"https://github.com/davidar/iccsh","last_synced_at":"2025-04-28T13:09:59.542Z","repository":{"id":970766,"uuid":"765684","full_name":"davidar/iccsh","owner":"davidar","description":"Interactive C Compiler Shell","archived":false,"fork":false,"pushed_at":"2015-06-09T08:43:25.000Z","size":141,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-28T13:09:44.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://da.vidr.cc/projects/iccsh/","language":"C","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/davidar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-07-09T10:21:33.000Z","updated_at":"2022-11-14T05:12:44.000Z","dependencies_parsed_at":"2022-08-16T11:40:22.861Z","dependency_job_id":null,"html_url":"https://github.com/davidar/iccsh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidar%2Ficcsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidar%2Ficcsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidar%2Ficcsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidar%2Ficcsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidar","download_url":"https://codeload.github.com/davidar/iccsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251319605,"owners_count":21570427,"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-10-01T21:28:31.540Z","updated_at":"2025-04-28T13:09:59.374Z","avatar_url":"https://github.com/davidar.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"**iCCsh** is an interactive C Compiler shell, based upon [TinyCC (TCC)](http://bellard.org/tcc/).\n\nIt allows C code to be quickly and\neasily evaluated, without the need for manually constructing and compiling an\nentire C source file. An example session is shown below:\n\n```c\n\u003e\u003e\u003e int i\n:declare i int i\n\u003e\u003e\u003e for(i = 0; i \u003c 20; i++) \\\n...     printf(\"%d \", i); \\\n... printf(\"\\n\");\n:eval for(i = 0; i \u003c 20; i++) ...\n0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 \n\u003e\u003e\u003e :f hello\n... void hello(const char *name) {\n...     printf(\"Hello %s!\\n\", name);\n... }\n... \n\u003e\u003e\u003e hello(\"world\")\n:eval hello(\"world\")\nHello world!\n\u003e\u003e\u003e :i math\n\u003e\u003e\u003e %f cos(M_PI/4)\n:printf %f cos(M_PI/4)\n0.707107\n```\n\niCCsh can also interface with native libraries, such as Xlib (X11):\n\n```c\n\u003e\u003e\u003e :sandbox off\n\u003e\u003e\u003e :i X11/Xlib\n\u003e\u003e\u003e :l X11\n\u003e\u003e\u003e :d display Display *display\n\u003e\u003e\u003e display = XOpenDisplay(\"\")\n\u003e\u003e\u003e :d screen Screen *screen\n\u003e\u003e\u003e screen = XScreenOfDisplay(display, 0)\n\u003e\u003e\u003e :p width=%d\\nheight=%d\\ndepth=%d \\\n...     screen-\u003ewidth, screen-\u003eheight, screen-\u003eroot_depth\nwidth=1280\nheight=800\ndepth=24\n\u003e\u003e\u003e XCloseDisplay(display)\n```\n\nRun `make \u0026\u0026 ./iccsh` to compile and execute. Type 'help' within the shell for\nusage information. Note that `texi2html` must be installed for TCC to compile.\n\nSee also [CINT](https://root.cern.ch/drupal/content/cint) C/C++ interpreter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidar%2Ficcsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidar%2Ficcsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidar%2Ficcsh/lists"}