CFLAGSHOME = -Wno-deprecated -O3 -march=prescott -fomit-frame-pointer -pipe -fprefetch-loop-arrays -funroll-loops -falign-jumps=4 -falign-loops=4 -falign-functions=5 -fforce-addr -ffast-math -fno-math-errno -funsafe-math-optimizations -ffinite-math-only -ftracer -fprefetch-loop-arrays -fno-trapping-math -fstrict-aliasing -fomit-frame-pointer -malign-double CFLAGSSPARC = -Wno-deprecated -O3 -fomit-frame-pointer -pipe -fprefetch-loop-arrays -funroll-loops -falign-jumps=4 -falign-loops=4 -falign-functions=5 -fforce-addr -ffast-math -fno-math-errno -funsafe-math-optimizations -ffinite-math-only -ftracer -fprefetch-loop-arrays -fno-trapping-math -fstrict-aliasing -fomit-frame-pointer -mcpu=v9 -m64 -fbranch-probabilities #-mfaster-structs = failure #ignoring multiple processors --- could quite possibly thread, having both processors go at it at once #-fprofile-arcs interesting but not so useful on #speed increase to 6 seconds from *78 seconds* on SPARC v9 (kelton) using all: acm acm: g++ $(CFLAGSSPARC) -o rizwank_acm0205 rizwank_acm0205.cpp cygwin: g++ $(CFLAGSHOME) -o rizwank_acm0205.exe rizwank_acm0205.cpp; clean: @-rm acm3.exe @-rm acm3