Read-only forum archive

Compiling Singular for best performance

Compiling Singular for best performance

yashodhan.karandikar · Fri Jun 22, 2012 6:01 am

While compiling Singular 3-1-3 on Linux, I observed the use of "-g" flag in the output of "make" command. Is this the default flag ? Which options during configure should be used for getting best runtime performance of Singular ?

Re: Compiling Singular for best performance

hannes · Fri Jun 22, 2012 3:09 pm

If your version of gcc supports -march, you may use this.
Also -O3 instead of -O2 may help (but does it not work with gcc 4.6).
For example (assume that your shell is bash):
Code:
export CC="gcc -march=native"
export CXX="g++ -march=native"
export CFLAGS="-O3  -fomit-frame-pointer"
export CXXFLAGS="-O3  -fomit-frame-pointer"
./configure