#!/bin/bash echo "Compiling executable..." llvm-gcc bzip2.c spec.c -o executable; echo "Producing ch..." llc -f -stats -regalloc=chordal executable.bc -o ch.s; gcc ch.s -o ch_exec; echo "Producing ln..." llc -f -stats -regalloc=linearscan executable.bc -o ln.s; gcc ln.s -o ln_exec; stats_sh ch.s ln.s echo "Running ch_exec:"; time ./ch_exec input.compressed > /dev/null echo "Running ln_exec:"; time ./ln_exec input.compressed > /dev/null