{"id":15858804,"url":"https://github.com/liamg/bfc","last_synced_at":"2025-03-15T23:30:52.467Z","repository":{"id":64308322,"uuid":"455291796","full_name":"liamg/bfc","owner":"liamg","description":"A compiler for brainfuck by someone who has no idea how compilers work","archived":false,"fork":false,"pushed_at":"2022-02-04T21:46:04.000Z","size":38,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T04:24:49.836Z","etag":null,"topics":["bad","brainfuck","brainfuck-compiler","compiler"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liamg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-03T19:00:32.000Z","updated_at":"2023-09-08T18:31:19.000Z","dependencies_parsed_at":"2023-01-15T11:15:26.630Z","dependency_job_id":null,"html_url":"https://github.com/liamg/bfc","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/liamg%2Fbfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fbfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fbfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fbfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liamg","download_url":"https://codeload.github.com/liamg/bfc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801610,"owners_count":20350106,"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":["bad","brainfuck","brainfuck-compiler","compiler"],"created_at":"2024-10-05T21:01:02.257Z","updated_at":"2025-03-15T23:30:52.029Z","avatar_url":"https://github.com/liamg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bfc\n\n*bfc* is a bad (probably) [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck) compiler. \n\nIt compiles only to *x64 assembly*, though there are flags that you can use to get your code assembled and linked into a standard Linux elf executable.\n\nI wrote this compiler because I had no idea how to write compilers, and thought it might be interesting. It was very interesting and I still have no idea how to write compilers because Brainfuck is a very syntactically simple language and has very few possible operations. I'll be working on a C compiler next instead. I didn't think this through.\n\n## Installation\n\nGrab the binary from the [latest release](https://github.com/liamg/bfc/releases/latest).\n\n## Usage\n\n### Compile Brainfuck to x64 asm:\n\n```bash\nbfc -o hello.asm hello.bf\n```\n\n### Compile and assemble Brainfuck to x64 object:\n\n```bash\nbfc -a -o hello.o hello.bf\n```\n\n### Compile, assemble and link Brainfuck to ELF binary:\n\n```bash\nbfc -al -o hello hello.bf\n```\n\n### All of the above and run the resultant binary\n\n```bash\nbfc -r hello.bf\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamg%2Fbfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliamg%2Fbfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamg%2Fbfc/lists"}