Skip to content

A Brainfuck compiler targeting x86-64 Assembly and ANSI C.

Notifications You must be signed in to change notification settings

olavfosse/brainfuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck

A Brainfuck compiler targeting x86-64 Assembly and ANSI C.

$ ./compile.sh
Compilation succeeded!
$ ./fetch_examples.sh
Fetched some examples!
$ ./brainfuck c89 examples/game_of_life.b /tmp/game_of_life.c
$ gcc -std=c89 /tmp/game_of_life.c -o game_of_life
$ ./game_of_life
$ ./brainfuck x64 examples/mandelbrot.b /tmp/mandelbrot.asm
$ nasm /tmp/mandelbrot.asm -f elf64 -o /tmp/mandelbrot.o
$ ld /tmp/mandelbrot.o -o mandelbrot
$ ./mandelbrot

About

A Brainfuck compiler targeting x86-64 Assembly and ANSI C.

Resources

Stars

Watchers

Forks