LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] gcc compiler flags

[ILUG] gcc compiler flags

Lars Hecking lhecking at nmrc.ie
Tue Jun 27 15:15:56 IST 2000


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.html
 http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC11
 http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC21
 http://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.





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell