use gcc -O3 flag and correct architecture flags