You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Chris Cheung <ch...@clustertech.com> on 2005/05/19 11:04:26 UTC

-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