new tool to show optimization result

git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4051 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
Minero Aoki 2008-09-23 13:54:15 +00:00
parent 637fce5053
commit d32b629568
1 changed files with 13 additions and 0 deletions

13
tools/diffoptimized.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
CBC=../bin/cbc
for src in "$@"
do
if $CBC $src >/dev/null 2>&1
then
echo "$src:"
$CBC -O -S $src -o ${src%%.cb}.s.opt &&
diff -u ${src%%.cb}.s ${src%%.cb}.s.opt
fi
done