Donncha O Caoimh writes:
> I'm compiling Apache using GCC 2.95.2 and just wondering if anyone can
> point me at a page listing some of the compiler optimizations I can use
> with that version of the compiler.
> Oh, and to make this off-topic, I'm compiling it on Solaris 2.6, but I
> will be doing same with Linux at some stage too.
http://gcc.gnu.org/onlinedocs/gcc_toc.htmlhttp://gcc.gnu.org/onlinedocs/gcc_2.html#SEC11http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC21http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC33
The operating system and version doesn't matter, but the cpu.
I rarely use anything but -O2. Anything else shouldn't make
a significant difference.
# SSL_BASE=../openssl-0.9.5a EAPI_MM=../mm-1.1.2 OPTIM="-O2" ./configure ...
On x86, OTOH, it may make sense to use the appropriate -mcpu option.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!