.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > YaPB
YaPB Yet another POD-Bot flavor by Whistler and Jeefo Counter-Strike

Reply
 
Thread Tools
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
Re: Recommended GCC/Clang opt flags?
Old
  (#2)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Recommended GCC/Clang opt flags? - 04-06-2017

The blacklisted flags that you mentions are not danger at all if the code is written properly. I mean that these flags are doing more aggressive optimizations(but nothing illegal). The real problem is that most of the time there is code that is relying on the so called "undefined behavior" that can produce different results with -O2 and -O3. That is why it is called "undefined" but rarely the developers respect that...
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com