#!/bin/sh
echo "# $(gcc -v 2>&1 | grep version)" | tee summary.log
export "CFLAGS=-Os -fomit-frame-pointer -mcpu=i686 -march=i686 -mtune=i686"
gcc $CFLAGS -fdump-tree-ssa factorial.c -o factorial
cat factorial.c.*.ssa | tee -a summary.log
echo ""
echo "With -html option:"
echo ""
gcc $CFLAGS -html -fdump-tree-ssa factorial.c -o factorial 2>&1 \
   | tee -a summary.log
cat factorial.c.*.ssa | tee -a summary.log
./factorial 4
rm -f factorial

