Below is the file 'optimtest' from this revision. You can also download the file.

#!/bin/sh

OUTPUT=

for COPTIM in -O0 -O1 -O2 -O3 -Os
do
	make clean
	make COPTIM=$COPTIM
	SIZE=`ls -l quad.bin | awk '{ print \$5 }'`
	LINE="$COPTIM: $SIZE"
	OUTPUT="$OUTPUT $LINE"
done

make clean

echo $OUTPUT