Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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