Skip to content

wereii/brainfuck

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BRAINFUCKCC

A(nother) Brainfuck compiler

The compilation itself is forked/taken from Benjamin James's brainfuck compiler. Where the brainfuck code is "converted" into GNU assembly, compiled using as into .o object format and then linked into binary ELF with GNU ld.

BUILD & INSTALL

mkdir build
cd build
cmake ..
make
# make test
sudo make install

Installation location can be specified with:

cmake -DCMAKE_INSTALL_PREFIX=/usr

Where this would result into /usr/bin/bfcc, and defaults (depending on your cmake version) to /usr/local.

DEPENDENCIES

gcc
binutils (ld, as - runtime dependency) 

Cmake script checks for these and will warn you if they are missing.

NOTES

This is just a fork of https://github.com/benjamin-james/brainfuck. Main compilation logic comes from James's version, I've only used it as a base for my own doings (fixing a few, adding a bit etc, see commit history).

Packages

No packages published

Languages

  • C 79.5%
  • CMake 11.0%
  • Brainfuck 9.5%