File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 22OPTS=" -Wall -Werror -Wno-pointer-to-int-cast"
33
44NEW=../utility/mapcode
5- OLD=$HOME /bin/mapcode-2.3.0
5+ OLD=$HOME /bin/mapcode-2.3.1
66NEWFILE=_new.txt
77OLDFILE=_old.txt
88
2323echo " !! -------------------------------------------------------------"
2424
2525echo " "
26- echo " Run with: -O3"
26+ echo " Run compare with: -O3"
2727cd ../mapcodelib
2828gcc $OPTS -O3 -c mapcoder.c
2929cd ../utility
Original file line number Diff line number Diff line change 1515echo " !! -------------------------------------------------------------"
1616
1717echo " "
18- echo " Run with: -O0"
18+ echo " Run gprof with: -O0"
1919cd ../mapcodelib
2020gcc $OPTS -g -O0 -c mapcoder.c -pg
2121cd ../unittest
@@ -25,7 +25,7 @@ gprof ./unittest
2525echo " !! -------------------------------------------------------------"
2626
2727echo " "
28- echo " Run with: -O3"
28+ echo " Run gprof with: -O3"
2929cd ../mapcodelib
3030gcc $OPTS -g -O3 -c mapcoder.c -pg
3131cd ../unittest
Original file line number Diff line number Diff line change 77echo " !! -------------------------------------------------------------"
88
99echo " "
10- echo " Run with: -O0"
10+ echo " Run normal with: -O0"
1111cd ../mapcodelib
1212gcc $OPTS -O0 -DDEBUG -c mapcoder.c
1313cd ../unittest
@@ -16,7 +16,7 @@ gcc $OPTS -O0 -DDEBUG unittest.c -lm -lpthread -o unittest ../mapcodelib/mapcode
1616echo " !! -------------------------------------------------------------"
1717
1818echo " "
19- echo " Run with: -O3"
19+ echo " Run normal with: -O3"
2020cd ../mapcodelib
2121gcc $OPTS -O3 -c mapcoder.c
2222cd ../unittest
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ echo "!! -------------------------------------------------------------"
1818
1919# No optimize
2020echo " "
21- echo " Run with: -O0"
21+ echo " Run address sanitizer with: -O0"
2222cd ../mapcodelib
2323gcc $OPTS -O0 -DDEBUG -c mapcoder.c
2424cd ../unittest
@@ -28,7 +28,7 @@ echo "!! -------------------------------------------------------------"
2828
2929# Optimize 2
3030echo " "
31- echo " Run with: -O2"
31+ echo " Run address sanitizer with: -O2"
3232cd ../mapcodelib
3333gcc $OPTS -O2 -c mapcoder.c
3434cd ../unittest
@@ -38,7 +38,7 @@ echo "!! -------------------------------------------------------------"
3838
3939# Optimize 3
4040echo " "
41- echo " Run with: -O3"
41+ echo " Run address sanitizer with: -O3"
4242cd ../mapcodelib
4343gcc $OPTS -O3 -c mapcoder.c
4444cd ../unittest
Original file line number Diff line number Diff line change 1515echo " !! -------------------------------------------------------------"
1616
1717echo " "
18- echo " Run with: -O0"
18+ echo " Run valgrind with: -O0"
1919cd ../mapcodelib
2020gcc $OPTS -g -O0 -c mapcoder.c
2121cd ../unittest
You can’t perform that action at this time.
0 commit comments