How to find optimization tags for my computer
Posted: Mon Jul 08, 2013 11:16 pm
I'm looking to build LinuxSampler for the first time. The documentations says to replace a line with my "preferred optimization flags." How do I find out what optimization tags I need for my computer?
Here's the section from the documentation: http://www.linuxsampler.org/debian.html#build_backend
Here's the section from the documentation: http://www.linuxsampler.org/debian.html#build_backend
Remove the arguments --host and --build which are only meant for cross compilation and prefix the line with your preferred optimization flags. So, for a Pentium4 machine it could look like:
Code: Select all
CXXFLAGS="-O3 -msse -march=pentium4 -mfpmath=sse -ffast-math -fomit-frame-pointer -funroll-loops" ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info