View Single Post
Recommended GCC/Clang opt flags?
Old
  (#1)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 215
Join Date: Feb 2013
Location: Dundee, Scotland
Default Recommended GCC/Clang opt flags? - 02-06-2017

Well I did some tests on the latest YaPB but it appears YaPB v2.8.4670 isn't stable for CS 1.6 compared to the final build for v2.7. I did some research even though I have not got the long-term experience on using the safe, moderate but faster optimisation flags. Bare in mind that this is only a suggestion:-

GCC Optimisation Flag Blacklist:-
-O3 -Ofast -Os -funroll-loops -funroll-all-loops -ffast-math -ffunction-sections -fdata-sections

GCC Optimisation Flag Whitelist:-
-mtune=i686 -march=pentium4 -mmmx -msse -msse2 -O2 -m32 -mfpmath=sse -finline-functions -pipe

I don't think that using like -O3 and -Ofast are as good as -O2 as it appears to be safer as well not compile a excessive larger .so build.





vBulletin Webmaster since 2001
  
Reply With Quote