Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aceinetx/llvmbf
Brainfuck compiler with llvm
https://github.com/aceinetx/llvmbf
brainfuck brainfuck-compiler compiler cpp cpp20 llvm llvm-ir
Last synced: 17 days ago
JSON representation
Brainfuck compiler with llvm
- Host: GitHub
- URL: https://github.com/aceinetx/llvmbf
- Owner: aceinetx
- License: agpl-3.0
- Created: 2024-10-17T18:45:44.000Z (21 days ago)
- Default Branch: main
- Last Pushed: 2024-10-18T14:19:32.000Z (20 days ago)
- Last Synced: 2024-10-20T04:25:37.717Z (19 days ago)
- Topics: brainfuck, brainfuck-compiler, compiler, cpp, cpp20, llvm, llvm-ir
- Language: C++
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# llvmbf
LLVM Brainfuck
## Building bfcc (the llvmbf compiler)
1. Install all the necessary llvm tools and sdk's
2. Clone this repo: ```git clone https://github.com/aceinetx/llvmbf```
3. Cd into it and create the build directory: ```cd llvmbf && mkdir build && cd build```
4. Configure cmake: ```cmake ..```
5. Build it: ```make -j4```bfcc is now built
## Using bfcc
### Compile .bf
- ```./bfcc a.bf```
### Flags that you might find useful
- ```--help```: Displays all the flags
- ```--ir``` (or ```-i```): Generate only IR code
- ```--asm``` (or ```-S```): Generate only assembly
- ```--obj``` (or ```-c```): Generate only object file