I compile with GCC 3.4.3 and max optimizations on Solaris and I do not have
any problems.

Try it and see if it works with -O3 -fexpensive-optimizations.

FYI, in my case, it only got about 2 secs faster on a 1.5 minute test run.

HTH!
Matt

-----Original Message-----
From: Chris Cheung [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 19, 2005 2:04 AM
To: [email protected]
Subject: -O2 on Linux


Hi,

In Xerces-C++'s runConfigure script,

      if test $platform = "os400"; then
         echo "NATIVE OS400 BUILD"
         debugflag="";
      elif test $platform = "irix"; then
         debugflag="-w -O2";
      elif test $platform = "aix"; then
         debugflag="-w -O2";
      elif test $platform = "os390"; then
         debugflag="";
      else
         debugflag="-w -O";
      fi

I notice that only some platforms use -O2, and the default is -O. For
linux (i686/Fedora Core 3/gcc 3.4.2 and x86_64/SuSe 9/gcc 3.3.3), is there
any danger in using -O2? Does anyone has experience in using -O2?
successful or problematic?

My compilation configuration is:

./runConfigure -plinux -minmem -nsocket -tnative -rpthread 

I add -b64 in x86_64.

Thanks a lot in advance.

-- 
Best Regards,

Chris Cheung
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.

Reply via email to