Index of /lisp/brainfuck

Icon  Name                    Last modified      Size  Description
[PARENTDIR] Parent Directory - [   ] rot13.bf 2009-12-21 22:43 647 [TXT] prime.bf 2009-12-23 20:43 4.3K [   ] mandelbrot.bf 2003-07-19 19:29 11K [   ] hello.bf 2009-12-21 20:51 561 [TXT] collatz.bf 2004-07-23 12:13 1.6K [   ] brainfuck.lisp 2009-12-24 17:57 5.0K [TXT] bottles.bf 2009-12-23 20:26 3.1K [   ] bockbeer.bf 2001-07-20 09:38 3.1K [   ] beer.bf 2002-10-02 17:01 1.8K [TXT] Makefile 2010-10-17 18:30 623 [   ] Llvm.pdf 2009-12-20 19:55 140K [   ] 666.bf 2001-07-19 15:37 40
Simple brainfuck to LLVM compiler. Deliberately no optimizations --
let LLVM handle this.

Benchmarked with LLVM-2.8.

1) UNOPTIMIZED COMPILATION

rm -f mandelbrot

make mandelbrot LLCFLAGS=-O0

ls -l mandelbrot
-rwxr-xr-x  1 bernd  bernd  180880 17 Okt 18:23 mandelbrot

time ./mandelbrot > /dev/null

real	0m10.309s
user	0m10.300s
sys	0m0.003s


2) OPTIMIZED COMPILATION

rm -f mandelbrot

make mandelbrot

ls -l mandelbrot
-rwxr-xr-x  1 bernd  bernd  29328 17 Okt 18:22 mandelbrot

time ./mandelbrot > /dev/null

real	0m1.728s
user	0m1.717s
sys	0m0.002s


3) RESULT

          unopt   opt
---------------------
size       6.0    1.0
run time   6.2    1.0