{"id":16887379,"url":"https://github.com/giuseppe/gccbrainfuck","last_synced_at":"2025-04-11T12:40:27.783Z","repository":{"id":6983403,"uuid":"8245310","full_name":"giuseppe/gccbrainfuck","owner":"giuseppe","description":"A Brainfuck frontend for GCC","archived":false,"fork":false,"pushed_at":"2019-01-14T22:39:33.000Z","size":22,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T08:51:25.644Z","etag":null,"topics":["brainfuck","c","compiler","frontend","gcc"],"latest_commit_sha":null,"homepage":"","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/giuseppe.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","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":"2013-02-17T03:14:49.000Z","updated_at":"2024-01-05T13:57:51.000Z","dependencies_parsed_at":"2022-09-21T02:21:54.029Z","dependency_job_id":null,"html_url":"https://github.com/giuseppe/gccbrainfuck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppe%2Fgccbrainfuck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppe%2Fgccbrainfuck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppe%2Fgccbrainfuck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppe%2Fgccbrainfuck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giuseppe","download_url":"https://codeload.github.com/giuseppe/gccbrainfuck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248402525,"owners_count":21097330,"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":["brainfuck","c","compiler","frontend","gcc"],"created_at":"2024-10-13T16:43:41.334Z","updated_at":"2025-04-11T12:40:27.757Z","avatar_url":"https://github.com/giuseppe.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GCC Brainfuck\n\nA GCC frontend for the brainfuck programming language.\n\n## Compile the frontend\n\nTo compile the Brainfuck frontend, the GCC source code is needed in\naddition to the Brainfuck frontend specific files:\n\n```\n$ git clone https://github.com/giuseppe/gccbrainfuck.git\n$ git clone --depth 1 git://gcc.gnu.org/git/gcc.git\n$ ln -s $(pwd)/gccbrainfuck gcc/gcc/brainfuck\n```\n\nOnce the `gcc/brainfuck` directory is in place, we can compile GCC with\nthe brainfuck frontend enabled, the GCC build does not allow\n`$buildir` to be the same as `$srcdir`, so we will do that in a\n`build` subdirectory, even though it could be any other directory.\nCompiling GCC can take quite a while, so you can enjoy a coffee while\nyou are waiting for it.\n\n```\n$ mkdir gcc/build\n$ cd gcc/build\n$ ../configure --enable-languages=brainfuck --disable-multilib\n$ make -j $(nproc)\n```\n\nInstall the files in `build/sysroot`\n```\n$ make install DESTDIR=sysroot\n```\n\n## Compile a Brainfuck \"Hello World\" program\n\nNow we can compile a simple program written in Brainfuck:\n```\n$ cat \u003e /tmp/helloworld.bf \u003c\u003cEOF\n++++++++[\u003e++++[\u003e++\u003e+++\u003e+++\u003e+\u003c\u003c\u003c\u003c-]\u003e+\u003e+\u003e-\u003e\u003e+[\u003c]\u003c-]\u003e\u003e.\u003e\n---.+++++++..+++.\u003e\u003e.\u003c-.\u003c.+++.------.--------.\u003e\u003e+.\u003e++.\nEOF\n$ PATH=$(pwd)/sysroot/usr/local/bin:$PATH gcc helloworld.bf -o helloworld\n$ ./helloworld\nHello World!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuseppe%2Fgccbrainfuck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiuseppe%2Fgccbrainfuck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuseppe%2Fgccbrainfuck/lists"}