Skip to content

Instantly share code, notes, and snippets.

@kwkmts
kwkmts / brainf.cpp
Last active March 21, 2024 14:14
Brainfuck compiler based on LLVM
//
// $ c++ `llvm-config --cxxflags --ldflags --libs --system-libs` -o brainf brainf.cpp
// $ ./brainf hello.bf >hello.ll
// $ lli hello.ll
//
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include <fstream>
@kwkmts
kwkmts / test
Created September 21, 2022 15:28
テスト