3
I recently found that when I build my C++ software, I get about a 10% speedup by using the g++ march=native option. When compiling gcc and libstc++, is it possible to tune the libstdc++ library to the native architecture as well? I couldn't find any mention of this in the gcc install configuration documentation. (I'm building gcc 4.6.2 on Linux Mint 11 with an Intel Core i7 Sandy Bridge-E processor.)
Clarification:
I normally build libstc++ when I build gcc, e.g. here is exactly what I'm doing and I'm looking to add some tuning options:
$ wget http://mirrors-us.seosue.com/gcc/releases/gcc-4.6.2/gcc-4.6.2.tar.gz
$ tar -xzf gcc-4.6.2.tar.gz
$ mkdir gcc-4.6.2-objdir
$ cd gcc-4.6.2-objdir/
$ ../gcc-4.6.2/configure
$ make
# make install
Good question, but it may be better on Stack Overflow. – Hassan – 2012-06-08T03:57:28.413
@Hassan, not sure it is on topic there, but it is certainly on topic here. – soandos – 2012-06-08T03:58:29.660