Browse Source

Add script to test the benefit of various -O flags

master
Gavan Fantom 14 years ago
parent
commit
6e7ef6488f
  1. 17
      optimtest

17
optimtest

@ -0,0 +1,17 @@
#!/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
Loading…
Cancel
Save