koji-kojiro / bfc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bfc

Overview

This is a trivial brainf*ck compiler based on libgccjit. The aim of this project is understanding how to use libgccjit to implement a programming language and its compiler.

Build from source

Clone this repo and then run make.

Usage

usage: bfc [options] file

options:
  -e <string> run <string> directly
  -h          show this screen and exit
  -m <size>   specify memory size in bytes (default 1024)
  -o <file>   place the output into <file> (default a.out)
  -O <level>  set optimization level (from 1 to 3, default 0)
  -r          execute file directly
  -v          show version info and exit

Author

TANI Kojiro (kojiro0531@gmail.com)

License

CL-REPL is distributed under GPLv3.

About

License:GNU Lesser General Public License v3.0


Languages

Language:C 98.0%Language:Makefile 2.0%